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 ReadOptions struct {
// Read key as a prefix
Prefix bool
}
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
Directories
¶
| Path | Synopsis |
|---|---|
|
Package cloudflare is a store implementation backed by cloudflare workers kv Note that the cloudflare workers KV API is eventually consistent.
|
Package cloudflare is a store implementation backed by cloudflare workers kv Note that the cloudflare workers KV API is eventually consistent. |
|
Package cockroach implements the cockroach store
|
Package cockroach implements the cockroach store |
|
Package etcd is an etcd v3 implementation of kv
|
Package etcd is an etcd v3 implementation of kv |
|
Package memory is a in-memory store store
|
Package memory is a in-memory store store |
|
Package service implements the store service interface
|
Package service implements the store service interface |
Click to show internal directories.
Click to hide internal directories.