Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AlgorithmResolveFunc = config.GenerateResolverFunc(AlgorithmToString[:], true)
View Source
var AlgorithmToString = [AlgorithmMax + 1]string{
"passthrough",
"golay24",
}
Functions ¶
func NewReaderFromConfig ¶
func NewReaderFromConfig(r ea.ByteBlockDiscardReader, config *FecConfig) (ea2.MessageReader, error)
func NewWriterFromConfig ¶
Types ¶
type AlgorithmE ¶
type AlgorithmE uint16
const ( AlgorithmPassthrough AlgorithmE = 0 AlgorithmGolay24 AlgorithmE = 1 AlgorithmMax AlgorithmE = 1 )
type FecConfig ¶
type FecConfig struct { FecAlgorithm uint16 `json:"algorithm"` NAnchorBytes uint8 `json:"nAnchorBytes"` AnchorMaxHammingDistPerByteIncl uint8 `json:"anchorMaxHammingDistPerByteIncl"` MaxMessageSize uint32 `json:"maxMessageSize"` // contains filtered or unexported fields }
func (*FecConfig) FromContext ¶
func (*FecConfig) ToCliFlags ¶
func (inst *FecConfig) ToCliFlags(nameTransf config.NameTransformFunc, envVarNameTransf config.NameTransformFunc) []cli.Flag
Click to show internal directories.
Click to hide internal directories.