nano-run/services/blob/interface.go
Alexander Baryshnikov 4edfaa4d26 initial code added
2020-09-10 18:11:34 +08:00

12 lines
282 B
Go

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)
}