Documentation ¶
Overview ¶
Package store is an interface for distribute data storage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *Options)
type ReadOption ¶
type ReadOption func(o *ReadOptions)
type ReadOptions ¶
type Store ¶
type Store interface { // Initialise store options Init(...Option) error // List all the known records List() ([]*Record, error) // Read records with keys Read(key string, opts ...ReadOption) (*Record, error) // Write records Write(*Record) error // Delete records with keys Delete(key string) error // Name of the store String() string }
Store is a data storage interface
Click to show internal directories.
Click to hide internal directories.