Documentation ¶
Index ¶
- type BoltStore
- func (m *BoltStore) Get(_ context.Context, key []byte) (*merkletree.Node, error)
- func (m *BoltStore) GetRoot(_ context.Context) (*merkletree.Hash, error)
- func (m *BoltStore) Iterate(_ context.Context, f func([]byte, *merkletree.Node) (bool, error)) error
- func (m *BoltStore) List(_ context.Context, limit int) ([]merkletree.KV, error)
- func (m *BoltStore) Put(_ context.Context, key []byte, node *merkletree.Node) error
- func (m *BoltStore) SetRoot(_ context.Context, hash *merkletree.Hash) error
- func (m *BoltStore) WithPrefix(prefix []byte) merkletree.Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltStore ¶
type BoltStore struct {
// contains filtered or unexported fields
}
BoltStore implements the db.BoltStore interface
func NewBoltStorage ¶
NewMemoryBoldStor returns a new BoltStore
func (*BoltStore) Iterate ¶
func (m *BoltStore) Iterate(_ context.Context, f func([]byte, *merkletree.Node) (bool, error)) error
Iterate implements the method Iterate of the interface db.Storage
func (*BoltStore) WithPrefix ¶
WithPrefix implements the method WithPrefix of the interface db.Storage
Click to show internal directories.
Click to hide internal directories.