Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemDBStore ¶
type MemDBStore struct {
// contains filtered or unexported fields
}
MemDBStore is a test memory database.
func NewMemDBStore ¶
func NewMemDBStore() *MemDBStore
NewMemDBStore create a memory database instance.
func (*MemDBStore) Delete ¶
func (db *MemDBStore) Delete(key []byte) error
func (*MemDBStore) Get ¶
func (db *MemDBStore) Get(key []byte) ([]byte, error)
Get get content from database.
func (*MemDBStore) NewBatch ¶
func (self *MemDBStore) NewBatch() dbstore.Batch
NewBatch create db batch
Click to show internal directories.
Click to hide internal directories.