Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProtoBytesToLpFn ¶
func GenerateMarshalFn ¶
func GenerateMarshalFn(pinnedTags map[string]string, desc protoreflect.MessageDescriptor) (ProtoBytesToLpFn, error)
Marshal from proto encoding to influx line protocol MessageDescriptor represent the proto descripor We create a proto.Message from it and the add the data to it from the in byte using the unmarshall Now with both data and descriptor, we can walk the fields
TODO - [x] enum kind - [x] primitives fields - [x] return error and error join - [x] repeated, cardinality is repeated and IsList is true - [x] nested message - [x] repeated message - [x] map field - [x] optional field - [x] imports - [x] enum list - [x] fix number array mistmatch - [x] more unit test - [ ] one of field - [ ] enum options
type WriteArrayValueToLpFn ¶
type WriteArrayValueToLpFn = func(value protoreflect.Value, args []any) string
type WriteValueToLpFn ¶
type WriteValueToLpFn = func(value protoreflect.Value, mr protoreflect.Message, args []any) string
Click to show internal directories.
Click to hide internal directories.