Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyValueDB ¶
type KeyValueDB interface { Put(key []byte, value []byte) error Get(key []byte) ([]byte, bool, error) Keys() ([]string, error) DropAll() error Close() error }
KeyValueDB is an interface implemented by key-value databases which spaGO can use.
func NewDefaultKeyValueDB ¶
func NewDefaultKeyValueDB(config Config) KeyValueDB
NewDefaultKeyValueDB returns a new KeyValueDB.
Click to show internal directories.
Click to hide internal directories.