Categorygithub.com/get-eventually/go-eventually/serdes
modulepackage
0.2.1
Repository: https://github.com/get-eventually/go-eventually.git
Documentation: pkg.go.dev

# Functions

Chain chains together two serdes to build a new serde instance to map from Src to Dst types.
NewJSON returns a new serde instance where some data (`T`) gets serialized to and deserialized from JSON as byte-array.
NewJSONDeserializer returns a deserializer function where a byte-array is deserialized into the specified data type.
NewJSONSerializer returns a serializer function where the input data (Src) gets serialized to JSON byte-array data.
NewProto returns a new serde instance where some data (`T`) gets serialized to and deserialized from a Protobuf byte-array.
NewProtoDeserializer returns a deserializer function where a byte-array is deserialized into a destination data type (T) using Protobuf.
NewProtoJSON returns a new serde instance where some data (`T`) gets serialized to and deserialized from Protobuf JSON.
NewProtoJSONDeserializer returns a deserializer function where a byte-array is deserialized into a destination model type (T) using Protobuf JSON.
NewProtoJSONSerializer returns a serializer function where the input data (T) gets serialized to Protobuf JSON byte-array data.
NewProtoSerializer returns a serializer function where the input data (T) gets serialized to Protobuf byte-array.

# Structs

Chained is a serde type that allows to chain two separate serdes, to map from an Src to a Dst type, using a common supporting type in the middle (Mid).