linker

package
v0.0.0-...-1e43bc6 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaggerConfig

type DaggerConfig struct {
	IndexInChain         int
	LastChainIndex       int
	GlobalMaxBlockSize   int
	HasherBits           int
	HasherName           string
	BlockMaker           block.Maker
	NewLinkBlockCallback NewLinkBlockCallback
	NextLinker           Linker
	InternalPanicf       func(format string, args ...interface{})
}

type Initializer

type Initializer func(
	linkerCLISubArgs []string,
	cfg *DaggerConfig,
) (instance Linker, initErrorStrings []string)

type Linker

type Linker interface {
	NewLeafBlock(leafData block.DataSource) (leafBlock *block.Header)
	NewLinkBlock(blocksToLink []*block.Header) (linkBlock *block.Header)
	AppendBlock(blockToAppendToStream *block.Header)
	DeriveRoot() (rootBlockAfterReducingAndDestroyingLinkerState *block.Header)
}

func NewNulLinker

func NewNulLinker(args []string, dgrCfg *DaggerConfig) (_ Linker, initErrs []string)

type NewLinkBlockCallback

type NewLinkBlockCallback func(
	hdr *block.Header,
	linkerLayer int,
	links []*block.Header,
)

Directories

Path Synopsis
ipfs

Jump to

Keyboard shortcuts

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