Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 from key
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
// OpenStore opens a store with the given name 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.