Documentation ¶
Index ¶
Constants ¶
View Source
const ( MongoPrefix = "mongodb://" MongoSRVPrefix = "mongodb+srv://" )
Variables ¶
This section is empty.
Functions ¶
func NewMongoDriver ¶
func NewMongoDriver(opts *types.ClientOpts) (*mongoDriver, error)
NewMongoDriver returns an instance of the driver official mongo connected to the database.
func ObjectIDDecodeValue ¶ added in v1.0.1
func ObjectIDDecodeValue(dc bsoncodec.DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error
ObjectIDDecodeValue decode Hex value of primitive.ObjectID into model.ObjectID
func ObjectIDEncodeValue ¶ added in v1.0.1
func ObjectIDEncodeValue(ec bsoncodec.EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error
ObjectIDDecodeValue encode Hex value of model.ObjectID into primitive.ObjectID
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.