Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeMongoClient ¶
func InitializeMongoClient(mongoUrl string, database string) (*MongoClient, DisconnectFunction, error)
Types ¶
type DisconnectFunction ¶
type DisconnectFunction func()
type MongoClient ¶
type MongoClient struct {
// contains filtered or unexported fields
}
func (MongoClient) Collection ¶
func (c MongoClient) Collection(s string) (*mongo.Collection, context.CancelFunc, context.Context)
func (MongoClient) Database ¶
func (c MongoClient) Database() *mongo.Database
func (MongoClient) NewGridFSClient ¶
func (c MongoClient) NewGridFSClient() (*gridfs.Bucket, error)
Click to show internal directories.
Click to hide internal directories.