Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageCodecOptions ¶
type MessageCodecOptions struct { UseProtoNames *bool // Specifies if field names should be marshaled/unmarshaled using their proto names. Defaults to false. *bsonoptions.StructCodecOptions }
MessageCodecOptions represents all possible options for proto.Message encoding and decoding.
func MergeMessageCodecOptions ¶
func MergeMessageCodecOptions(opts ...*MessageCodecOptions) *MessageCodecOptions
MergeMessageCodecOptions combines the given *MessageCodecOptions into a single *MessageCodecOptions in a last one wins fashion.
func MessageCodec ¶
func MessageCodec() *MessageCodecOptions
MessageCodec creates a new *MessageCodecOptions.
func (*MessageCodecOptions) SetUseProtoNames ¶
func (t *MessageCodecOptions) SetUseProtoNames(b bool) *MessageCodecOptions
SetUseProtoNames specifies if field names should be marshaled/unmarshaled using their proto names. Defaults to false.
Click to show internal directories.
Click to hide internal directories.