Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FieldNumberToElementName ¶
func FieldNumberToElementName(num protoreflect.FieldNumber) string
FieldNumberToElementName returns the BSON-encoded field name corresponding to Protobuf message field number.
func NewCodec ¶
func NewCodec() bsoncodec.ValueCodec
NewCodec returns a new instance of a BSON codec for Protobuf messages. Messages are encoded using field numbers as document keys, so that stored messages can survive field renames.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.