Versions in this module Expand all Collapse all v1 v1.0.1 Mar 1, 2020 Changes in this version + const ECTypeInvalid + const ECTypeShard + const ECTypeStandard + const EncodedShardUnit + var ErrInsufficientData = errors.New("not sufficient data for recovery") + var ErrInvalidECType = errors.New("invalid erasure code type") + type ErasureCoder interface + Encode func(data []byte) ([][]byte, error) + Extra func() []interface{} + MinSectors func() uint32 + NumSectors func() uint32 + Recover func(sectors [][]byte, n int, w io.Writer) error + Type func() uint8 + func New(ecType uint8, minSectors uint32, numSectors uint32, extra ...interface{}) (ErasureCoder, error)