Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrKeyHasNoContent = errors.New("specified key has no contents")
ErrKeyHasNoContent is an error for file key that has no contents
View Source
var ErrKeyIsEmpty = errors.New("specified key is empty")
ErrKeyIsEmpty is an error for key is empty
View Source
var ErrRootKeyInvalid = errors.New("root key is invalid")
ErrRootKeyInvalid is an error for root key is invalid
View Source
var ErrStorageAccessConflict = errors.New("specified key is under accessing")
ErrStorageAccessConflict is an error for accessing key conflict
View Source
var ErrStorageNotFound = errors.New("specified key is not found")
ErrStorageNotFound is an error for not found accessing key
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { Create(key string, contents []byte) error Delete(key string) error Get(key string) ([]byte, error) ListKeys(key string) ([]string, error) List(key string) ([][]byte, error) Update(key string, contents []byte) error Replace(rootKey string, contents map[string][]byte) error DeleteCollection(rootKey string) error }
Store is an interface for caching data into backend storage
Click to show internal directories.
Click to hide internal directories.