Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRegistry = bson.NewRegistryBuilder(). RegisterCodec(knowncodec.TypeBoolValue, defaultBoolValueCodec). RegisterCodec(knowncodec.TypeBytesValue, defaultBytesValueCodec). RegisterCodec(knowncodec.TypeDoubleValue, defaultDoubleValueCodec). RegisterCodec(knowncodec.TypeDuration, defaultDurationCodec). RegisterCodec(knowncodec.TypeFloatValue, defaultFloatValueCodec). RegisterCodec(knowncodec.TypeInt32Value, defaultInt32ValueCodec). RegisterCodec(knowncodec.TypeInt64Value, defaultInt64ValueCodec). RegisterHookEncoder(protobsoncodec.TypeMessage, defaultMessageCodec). RegisterHookDecoder(protobsoncodec.TypeMessage, defaultMessageCodec). RegisterCodec(knowncodec.TypeStringValue, defaultStringValueCodec). RegisterCodec(knowncodec.TypeTimestamp, defaultTimestampCodec). RegisterCodec(knowncodec.TypeUInt32Value, defaultUInt32ValueCodec). RegisterCodec(knowncodec.TypeUInt64Value, defaultUInt64ValueCodec). RegisterCodec(googleapiscodec.TypeDateTime, defaultGAPIDateTimeCodec). Build()
DefaultRegistry is the default bsoncodec.Registry with all default protobson codecs registered.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.