Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedChunkers = []string{"rabin"}
SupportedChunkers holds identifiers for all supported stores
Functions ¶
func CreateChunkWriter ¶
CreateChunkWriter a store instance for any of the supported types
func CreateChunker ¶
func CreateChunker(ctype string, secret bits.Secret, input io.Reader) (cr bits.ChunkReader, err error)
CreateChunker a store instance for any of the supported types
Types ¶
type RabinChunker ¶
type RabinChunker struct {
// contains filtered or unexported fields
}
RabinChunker is a chunker that uses a rolling rabin checksum
func NewRabinChunker ¶
func NewRabinChunker(r io.Reader, pol chunker.Pol) *RabinChunker
NewRabinChunker creates a chunker that uses a rolling rabin checksum
func (*RabinChunker) Read ¶
func (c *RabinChunker) Read() (chunk []byte, err error)
Next will return the next chunk for processing
Click to show internal directories.
Click to hide internal directories.