refactoring-1
introduced pipelines and abstracted download process.go in Downloader interface
This commit is contained in:
8
server/internal/pipes/pipe.go
Normal file
8
server/internal/pipes/pipe.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package pipes
|
||||
|
||||
import "io"
|
||||
|
||||
type Pipe interface {
|
||||
Name() string
|
||||
Connect(r io.Reader) (io.Reader, error)
|
||||
}
|
||||
Reference in New Issue
Block a user