decoder

package
v0.0.11-beta1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 8 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL