chunker

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chunk

type Chunk struct {
	Size int
	Meta map[interface{}]interface{}
}

type Chunker

type Chunker interface {
	MinChunkSize() (constantSmallestPossibleEmittedChunk int)
	Split(
		rawDataBuffer []byte,
		useEntireBuffer bool,
		resultCallback SplitResultCallback,
	) error
}

type DaggerConfig

type DaggerConfig struct {
	IndexInChain       int
	LastChainIndex     int
	GlobalMaxChunkSize int
	InternalPanicf     func(format string, args ...interface{})
}

type Initializer

type Initializer func(
	chunkerCLISubArgs []string,
	cfg *DaggerConfig,
) (instance Chunker, initErrorStrings []string)

type SplitResultCallback

type SplitResultCallback func(Chunk) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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