Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDuplicateStore = errors.New("store already exists")
ErrDuplicateStore is used when an attempt is made to create a duplicate store.
View Source
var ErrStoreNotFound = errors.New("store not found")
ErrStoreNotFound is used when a given store was not found in a provider.
View Source
var ErrValueNotFound = errors.New("store does not have a value associated with this key")
ErrValueNotFound is used when an attempt is made to retrieve a value using a key that isn't in the store.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
// CreateStore creates a new store with the given name.
CreateStore(name string) error
// OpenStore opens an existing store and returns it.
OpenStore(name string) (Store, error)
// CloseStore closes the store with the given name.
CloseStore(name string) error
// Close closes all stores created under this store provider.
Close() error
}
Provider represents a storage provider.
Click to show internal directories.
Click to hide internal directories.