Documentation
¶
Index ¶
- Constants
- type Badger
- type Database
- type Error
- type Memory
- type PrefixDB
- func (p *PrefixDB) Close() error
- func (p *PrefixDB) Delete(key string) error
- func (p *PrefixDB) Get(key string) ([]byte, error)
- func (p *PrefixDB) Has(key string) (bool, error)
- func (p *PrefixDB) Persist(key string, value []byte) error
- func (p *PrefixDB) Read(prefix string) (map[string][]byte, error)
Constants ¶
View Source
const (
ErrNotFound = Error("not found")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Badger ¶
type Badger struct {
// contains filtered or unexported fields
}
Badger implements Database
func NewBadgerWithLogger ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory implements Database
type PrefixDB ¶
type PrefixDB struct {
// contains filtered or unexported fields
}
func NewPrefixDB ¶
Click to show internal directories.
Click to hide internal directories.