dgrcollector

package
v0.0.0-...-3e596e0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	AppendData(formLeafBlockAndAppend dgrblock.DataSource) (resultingLeafBlock *dgrblock.Header, err error)
	AppendBlock(blockToAppendToStream *dgrblock.Header) error
	FlushState() (rootBlockAfterReducingAndDestroyingObjectState *dgrblock.Header)
}

type DaggerConfig

type DaggerConfig struct {
	ChunkerChainMaxResult int // used for initialization sanity checks
	ChainPosition         int // used for DAG-stats layering

	// for collectors doing their own hashing
	AsyncHashersCount int
	ShutdownSemaphore <-chan struct{}

	NextCollector Collector
}

type Initializer

type Initializer func(
	collectorCLISubArgs []string,
	cfg *DaggerConfig,
) (instance Collector, initErrorStrings []string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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