Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BoolValue collcodec.ValueCodec[bool] = boolValue{}
BoolValue implements a ValueCodec that saves the bool value as if it was a prototypes.BoolValue. Required for backwards compatibility of state.
Functions ¶
func CollValue ¶
func CollValue[T any, PT protoMessage[T]](cdc interface { Marshal(proto.Message) ([]byte, error) Unmarshal([]byte, proto.Message) error }, ) collcodec.ValueCodec[T]
CollValue inits a collections.ValueCodec for a generic gogo protobuf message.
func CollValueV2 ¶
func CollValueV2[T any, PT protoMessageV2[T]]() collcodec.ValueCodec[PT]
CollValueV2 is used for protobuf values of the newest google.golang.org/protobuf API.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.