protocodec

package module
v0.0.0-...-4a533fd Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

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