Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { // Init configures the storage. Init() error // Get returns the value for the given key. Get(key []byte) ([]byte, error) // Set sets the value for the given key. Set(key []byte, value []byte) error // Delete deletes the value for the given key. Delete(key []byte) error // Exists returns true if the given key exists. Exists(key []byte) (bool, error) // Len returns the number of keys in the storage. Len() (int, error) // PhysicalSnapshot writes snapshot of the storage data to // the given writer. PhysicalSnapshot(w io.Writer) error // Close closes the storage. Close() error }
Click to show internal directories.
Click to hide internal directories.