Documentation ¶
Index ¶
- type LDBDatabase
- func (self *LDBDatabase) Close()
- func (self *LDBDatabase) Delete(key []byte) error
- func (self *LDBDatabase) Get(key []byte) ([]byte, error)
- func (self *LDBDatabase) LastKnownTD() []byte
- func (self *LDBDatabase) NewIterator() iterator.Iterator
- func (self *LDBDatabase) Print()
- func (self *LDBDatabase) Put(key []byte, value []byte)
- type MemDatabase
- func (db *MemDatabase) Close()
- func (db *MemDatabase) Delete(key []byte) error
- func (db *MemDatabase) Get(key []byte) ([]byte, error)
- func (db *MemDatabase) LastKnownTD() []byte
- func (db *MemDatabase) Print()
- func (db *MemDatabase) Put(key []byte, value []byte)
- func (db *MemDatabase) Set(key []byte, value []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LDBDatabase ¶
type LDBDatabase struct {
// contains filtered or unexported fields
}
func NewLDBDatabase ¶
func NewLDBDatabase(name string) (*LDBDatabase, error)
func (*LDBDatabase) Close ¶
func (self *LDBDatabase) Close()
func (*LDBDatabase) Delete ¶
func (self *LDBDatabase) Delete(key []byte) error
func (*LDBDatabase) LastKnownTD ¶ added in v0.7.10
func (self *LDBDatabase) LastKnownTD() []byte
func (*LDBDatabase) NewIterator ¶
func (self *LDBDatabase) NewIterator() iterator.Iterator
func (*LDBDatabase) Print ¶ added in v0.7.10
func (self *LDBDatabase) Print()
func (*LDBDatabase) Put ¶
func (self *LDBDatabase) Put(key []byte, value []byte)
type MemDatabase ¶
type MemDatabase struct {
// contains filtered or unexported fields
}
* This is a test memory database. Do not use for any production it does not get persisted
func NewMemDatabase ¶
func NewMemDatabase() (*MemDatabase, error)
func (*MemDatabase) Close ¶
func (db *MemDatabase) Close()
func (*MemDatabase) Delete ¶
func (db *MemDatabase) Delete(key []byte) error
func (*MemDatabase) LastKnownTD ¶ added in v0.7.10
func (db *MemDatabase) LastKnownTD() []byte
func (*MemDatabase) Print ¶ added in v0.7.10
func (db *MemDatabase) Print()
func (*MemDatabase) Put ¶
func (db *MemDatabase) Put(key []byte, value []byte)
func (*MemDatabase) Set ¶ added in v0.7.10
func (db *MemDatabase) Set(key []byte, value []byte)
Click to show internal directories.
Click to hide internal directories.