Documentation
¶
Index ¶
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 Dial ¶
func Dial(connectUri string) *MongoClient
func (*MongoClient) Close ¶
func (this *MongoClient) Close()
func (*MongoClient) GetClient ¶
func (this *MongoClient) GetClient() *mongo.Client
func (*MongoClient) GetCollection ¶
func (this *MongoClient) GetCollection(databaseName string, collectionName string) *mongo.Collection
func (*MongoClient) GetDatabase ¶
func (this *MongoClient) GetDatabase(databaseName string) *mongo.Database
Click to show internal directories.
Click to hide internal directories.