nano-run/services/blob/interface.go

12 lines
282 B
Go
Raw Normal View History

2020-09-10 10:11:34 +00:00
package blob
import "io"
// Large (more then memory) content storage.
type Blob interface {
// Push content to the storage using provided writer.
Push(id string, handler func(out io.Writer) error) error
// Get content from the storage.
Get(id string) (io.ReadCloser, error)
}