2018-01-29 20:37:26 +01:00
|
|
|
package store
|
|
|
|
|
2018-02-22 19:48:46 +01:00
|
|
|
import "github.com/lbryio/lbry.go/errors"
|
2018-02-07 21:21:20 +01:00
|
|
|
|
2018-01-29 20:37:26 +01:00
|
|
|
type BlobStore interface {
|
|
|
|
Has(string) (bool, error)
|
|
|
|
Get(string) ([]byte, error)
|
|
|
|
Put(string, []byte) error
|
2018-02-02 22:49:20 +01:00
|
|
|
PutSD(string, []byte) error
|
2018-01-29 20:37:26 +01:00
|
|
|
}
|
2018-02-07 21:21:20 +01:00
|
|
|
|
|
|
|
var ErrBlobNotFound = errors.Base("blob not found")
|