Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinarySerde ¶
type JsonSerde ¶
type JsonSerde struct{}
JsonSerde implements the BinarySerde interface using JSON.
func (*JsonSerde) DeserializeBinary ¶
DeserializeBinary deserializes JSON data into a Go value.
type ProtoSerde ¶
type ProtoSerde struct{}
ProtoSerde implements the BinarySerde interface using Protobuf.
func (*ProtoSerde) DeserializeBinary ¶
func (p *ProtoSerde) DeserializeBinary(data []byte, valuePtr any) error
DeserializeBinary deserializes binary data into a proto.Message.
func (*ProtoSerde) SerializeBinary ¶
func (p *ProtoSerde) SerializeBinary(value any) ([]byte, error)
SerializeBinary serializes a proto.Message to its binary representation.
Click to show internal directories.
Click to hide internal directories.