Documentation ¶
Overview ¶
Package chunk includes several data chunking algorithms.
This package only defines the interfaces used for chunking. See each subpackage for the relevant algorithms.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chunker ¶
type Chunker interface { io.Writer // Flush causes the chunker to write its current buffer // using its ChunkWriter. Flush() error // Reset prepares the chunker for a new chunk of data. // Chunkers should automatically reset themselves after // being flushed. Reset() // Remaining returns the data in the chunker's buffer. Remaining() []byte }
Chunker is the interface implemented by all the chunkers. A Chunker receives a stream of data and splits it into chunks, which are written by its ChunkWriter (usually implemented by the caller.
Click to show internal directories.
Click to hide internal directories.