merkle

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	OnData(value []byte) error
	UnresolvedCount() int
	Requests() RequestIterator
	RequestData(id db.BucketID, key []byte, requester DataRequester)
	Database() db.Database
	Flush(write bool) error
}

func NewBuilder

func NewBuilder(dbase db.Database) Builder

func NewBuilderWithRawDatabase

func NewBuilderWithRawDatabase(dbase db.Database) Builder

type CopyContext

type CopyContext struct {
	// contains filtered or unexported fields
}

func NewCopyContext

func NewCopyContext(src db.Database, dst db.Database) *CopyContext

func (*CopyContext) Builder

func (e *CopyContext) Builder() Builder

func (*CopyContext) Copy

func (e *CopyContext) Copy(id db.BucketID, key []byte) error

func (*CopyContext) Run

func (e *CopyContext) Run() error

func (*CopyContext) Set

func (e *CopyContext) Set(id db.BucketID, key, value []byte) error

func (*CopyContext) SourceDB

func (e *CopyContext) SourceDB() db.Database

func (*CopyContext) TargetDB

func (e *CopyContext) TargetDB() db.Database

type DataRequester

type DataRequester interface {
	OnData(value []byte, builder Builder) error
}

type RequestIterator

type RequestIterator interface {
	Next() bool
	Key() []byte
	BucketIDs() []db.BucketID
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL