Documentation ¶
Overview ¶
Package database provides KV database for meta-information
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("key not found")
)
Errors for Storage
Functions ¶
Types ¶
type Storage ¶
type Storage interface { Get(key []byte) ([]byte, error) Put(key []byte, value []byte) error Delete(key []byte) error KeysByPrefix(prefix []byte) [][]byte FetchByPrefix(prefix []byte) [][]byte Close() error StartBatch() FinishBatch() error CompactDB() error }
Storage is an interface to KV storage
Click to show internal directories.
Click to hide internal directories.