Documentation ¶
Index ¶
Constants ¶
View Source
const ( MIN_CHUNK = 256 << 10 MAX_CHUNK = 4 << 20 POL = restic.Pol(0x39fc525c05db35) )
View Source
const (
AVG_CHUNK = 256 << 10
)
Variables ¶
View Source
var ErrInvalidChunker = fmt.Errorf("Invalid chunker string")
Invalid chunker string error
Functions ¶
This section is empty.
Types ¶
type Chunker ¶
Chunker interface wraps the Next() method Next() gives the next chunk
func GetChunker ¶
Returns the appropriate chunker implementation based on the input string
type FastCDCChunker ¶
Implements the FastCDC algorithm
func (*FastCDCChunker) Name ¶
func (fc *FastCDCChunker) Name() string
func (*FastCDCChunker) Next ¶
func (fc *FastCDCChunker) Next() (*Chunk, error)
type RabinFPChunker ¶
Implements the Rabin-fingerprint based CDC algorithm
func (*RabinFPChunker) Name ¶
func (rc *RabinFPChunker) Name() string
func (*RabinFPChunker) Next ¶
func (rc *RabinFPChunker) Next() (*Chunk, error)
Click to show internal directories.
Click to hide internal directories.