Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBatch ¶ added in v0.5.1
func NewBatch(get GetFunc, commit CommitFunc) storage.KeyValueTxn
Types ¶
type DB ¶
type DB struct { DBOpen atomicBool // contains filtered or unexported fields }
DB Implements a key value store in memory. Very basic, assumes no initial state for the database That must be handled by the caller, but see the notes on InitDB for future improvements.
func (*DB) MarshalJSON ¶
func (*DB) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.