Documentation
¶
Overview ¶
Package store is an interface for distribute data storage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
Types ¶
type Store ¶
type Store interface {
// embed options
options.Options
// Sync all the known records
Sync() ([]*Record, error)
// Read a record with key
Read(keys ...string) ([]*Record, error)
// Write a record
Write(recs ...*Record) error
// Delete a record with key
Delete(keys ...string) error
}
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 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.