Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoClient ¶
type MongoClient interface { Disconnect(ctx context.Context) error FindCollection(name string) *mongo.Collection }
func NewMongoClient ¶
func NewMongoClient(ctx context.Context, dbName *string) (MongoClient, error)
type MongoClientImpl ¶
func (*MongoClientImpl) Disconnect ¶
func (c *MongoClientImpl) Disconnect(ctx context.Context) error
func (*MongoClientImpl) FindCollection ¶
func (c *MongoClientImpl) FindCollection(name string) *mongo.Collection
Click to show internal directories.
Click to hide internal directories.