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