mirror of
https://github.com/LBRYFoundation/reflector.go.git
synced 2025-08-23 17:27:25 +00:00
15 lines
433 B
Go
15 lines
433 B
Go
package store
|
|
|
|
import "github.com/lbryio/lbry.go/errors"
|
|
|
|
// BlobStore is an interface with methods for consistently handling blob storage.
|
|
type BlobStore interface {
|
|
Has(string) (bool, error)
|
|
Get(string) ([]byte, error)
|
|
Put(string, []byte) error
|
|
PutSD(string, []byte) error
|
|
Delete(string) error
|
|
}
|
|
|
|
//ErrBlobNotFound is a standard error when a blob is not found in the store.
|
|
var ErrBlobNotFound = errors.Base("blob not found")
|