Documentation ¶
Index ¶
- type LDBDatabase
- func (db *LDBDatabase) Close()
- func (db *LDBDatabase) Db() *leveldb.DB
- func (db *LDBDatabase) Delete(key []byte) error
- func (db *LDBDatabase) Get(key []byte) ([]byte, error)
- func (db *LDBDatabase) LastKnownTD() []byte
- func (db *LDBDatabase) Print()
- func (db *LDBDatabase) Put(key []byte, value []byte)
- type MemDatabase
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 (db *LDBDatabase) Close()
func (*LDBDatabase) Db ¶
func (db *LDBDatabase) Db() *leveldb.DB
func (*LDBDatabase) Delete ¶
func (db *LDBDatabase) Delete(key []byte) error
func (*LDBDatabase) LastKnownTD ¶
func (db *LDBDatabase) LastKnownTD() []byte
func (*LDBDatabase) Print ¶
func (db *LDBDatabase) Print()
func (*LDBDatabase) Put ¶
func (db *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 ¶
func (db *MemDatabase) LastKnownTD() []byte
func (*MemDatabase) Print ¶
func (db *MemDatabase) Print()
func (*MemDatabase) Put ¶
func (db *MemDatabase) Put(key []byte, value []byte)
Click to show internal directories.
Click to hide internal directories.