Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Credentials ¶
type Store ¶
type Store interface { AtomicInc(key string) (int64, error) Delete(key string) error Put(key string, value []byte) error Fetch(key string) ([]byte, error) List(prefix string) ([]string, []byte, error) }
Store defines an implementation-agnostic key-value storage interface.
func NewInMemoryStore ¶
func NewInMemoryStore() Store
NewInMemoryStore returns a new KV backend using an ephemeral in-memory representation.
func NewRemoteStore ¶
func NewRemoteStore(cred Credentials) Store
NewRemoteStore returns a new storage backend using a managed Valar KV database instance.
Click to show internal directories.
Click to hide internal directories.