2015-03-01 03:27:52 -05:00
|
|
|
package data_v1
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
type DataHeader struct {
|
|
|
|
Key string
|
|
|
|
Part int
|
2015-03-01 04:05:12 -05:00
|
|
|
Metadata map[string]string
|
2015-03-01 03:27:52 -05:00
|
|
|
EncoderParams EncoderParams
|
|
|
|
}
|
|
|
|
|
2015-03-01 04:05:12 -05:00
|
|
|
type EncoderTechnique int
|
|
|
|
|
|
|
|
const (
|
|
|
|
VANDERMONDE EncoderTechnique = iota
|
|
|
|
CAUCHY
|
|
|
|
)
|
|
|
|
|
2015-03-01 03:27:52 -05:00
|
|
|
type EncoderParams struct {
|
|
|
|
Length int
|
|
|
|
K int
|
|
|
|
M int
|
2015-03-01 04:05:12 -05:00
|
|
|
Technique EncoderTechnique
|
2015-03-01 03:27:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
func Write() error {
|
|
|
|
return errors.New("Not Implemented")
|
|
|
|
}
|