Documentation ¶
Index ¶
Constants ¶
View Source
const (
MaxNumberOfItemsToCopyInRow = 50
)
Variables ¶
View Source
var ( // ErrNoHasher will be returned if supplied BucketID doesn't have valid // hash function for verifying the received data. ErrNoHasher = errors.New("NoHasher") // ErrNoRequester will be returned if there is nobody who want the data. ErrNoRequester = errors.New("NoRequester") )
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder interface { OnData(bid db.BucketID, value []byte) error UnresolvedCount() int Requests() RequestIterator RequestData(id db.BucketID, key []byte, requester DataRequester) Database() db.Database Flush(write bool) error }
func NewBuilder ¶
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) Run ¶
func (e *CopyContext) Run() error
func (*CopyContext) SourceDB ¶
func (e *CopyContext) SourceDB() db.Database
func (*CopyContext) TargetDB ¶
func (e *CopyContext) TargetDB() db.Database
type DataRequester ¶
Click to show internal directories.
Click to hide internal directories.