MCPcopy Create free account
hub / github.com/akalin/gopar / EncoderDelegate

Interface EncoderDelegate

par2/encoder.go:42–46  ·  view source on GitHub ↗

EncoderDelegate holds methods that are called during the encode process.

Source from the content-addressed store, hash-verified

40// EncoderDelegate holds methods that are called during the encode
41// process.
42type EncoderDelegate interface {
43 OnDataFileLoad(i, n int, path string, byteCount int, err error)
44 OnIndexFileWrite(path string, byteCount int, err error)
45 OnRecoveryFileWrite(start, count, total int, path string, dataByteCount, byteCount int, err error)
46}
47
48func newEncoder(fileIO fileIO, delegate EncoderDelegate, basePath string, filePaths []string, sliceByteCount, parityShardCount, numGoroutines int) (*Encoder, error) {
49 if !filepath.IsAbs(basePath) {

Callers 3

LoadFileDataMethod · 0.65
WriteMethod · 0.65
WriteMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected