Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Endianess = binary.LittleEndian
Functions ¶
This section is empty.
Types ¶
type BinaryDecoder ¶
type BinaryDecoder interface {
// DecodeBinaryStruct takes in a raw btf type, and translates
// raw binary data into a map[string]interface{} of that format.
// If the incoming type is not a struct, it will return map[""]<type>
DecodeBtfBinary(
ctx context.Context, typ btf.Type, raw []byte,
) (map[string]interface{}, error)
}
type DecoderFactory ¶
type DecoderFactory func() BinaryDecoder
func NewDecoderFactory ¶
func NewDecoderFactory() DecoderFactory
Click to show internal directories.
Click to hide internal directories.