Documentation
¶
Index ¶
- type Client
- type MongoClient
- func (mc *MongoClient) ApplyURI(uri string)
- func (mc *MongoClient) Connect(ctx context.Context) error
- func (mc *MongoClient) Database(name string, opts ...*options.DatabaseOptions) *mongo.Database
- func (mc *MongoClient) Disconnect(ctx context.Context) error
- func (mc *MongoClient) NewClient() error
- func (mc *MongoClient) Ping(ctx context.Context, rp *readpref.ReadPref) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoClient ¶
type MongoClient struct {
// contains filtered or unexported fields
}
func (*MongoClient) ApplyURI ¶
func (mc *MongoClient) ApplyURI(uri string)
func (*MongoClient) Database ¶
func (mc *MongoClient) Database(name string, opts ...*options.DatabaseOptions) *mongo.Database
func (*MongoClient) Disconnect ¶
func (mc *MongoClient) Disconnect(ctx context.Context) error
func (*MongoClient) NewClient ¶
func (mc *MongoClient) NewClient() error
Click to show internal directories.
Click to hide internal directories.