Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Registry *bson.Registry
Registry is a custom BSON registry that handles UUID types as strings. In mongo-driver v2, there is no global default registry. Consumers must pass this registry to their MongoDB client, database, or collection via options.Client().SetRegistry(bsoncodec.Registry).
Functions ¶
Types ¶
type CommandCodec ¶ added in v0.15.0
type CommandCodec struct{}
CommandCodec is a codec for marshaling and unmarshaling commands to and from bytes in BSON format.
func (CommandCodec) MarshalCommand ¶ added in v0.15.0
MarshalCommand marshals a command into bytes in BSON format.
type EventCodec ¶
type EventCodec struct{}
EventCodec is a codec for marshaling and unmarshaling events to and from bytes in BSON format.
func (*EventCodec) MarshalEvent ¶
MarshalEvent marshals an event into bytes in BSON format.
Click to show internal directories.
Click to hide internal directories.