Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrGone = errors.New("gone") ErrReadOnly = errors.New("read-only mode") ErrSnapshotReleased = errors.New("snapshot released") ErrIterReleased = errors.New("iterator released") ErrClosed = errors.New("closed") ErrVersionMismatch = errors.New("version mismatch") )
Common errors.
Functions ¶
func UnsafeBytesToString ¶
UnsafeBytesToString converts []byte to string without a memcopy
func UnsafeStringToBytes ¶
UnsafeStringToBytes converts strings to []byte without memcopy
Types ¶
type Store ¶
type Store interface { Put(string, Value) error Get(string) (Value, error) FindByPrefix(string) ([]KeyValue, error) Delete(string) error Close() error }
Store for values by key
type Value ¶
type Value struct { Value []byte Version uint64 LastUpdated int64 // contains filtered or unexported fields }
Value returned from a persistence medium
func (*Value) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
Click to show internal directories.
Click to hide internal directories.