Documentation ¶ Index ¶ type MongoDB func NewMongoDB(uri string, dbName string, logger *zap.Logger) (*MongoDB, error) func (m *MongoDB) Collection(name string) *mongo.Collection func (m *MongoDB) Disconnect(ctx context.Context) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type MongoDB ¶ type MongoDB struct { // contains filtered or unexported fields } func NewMongoDB ¶ func NewMongoDB(uri string, dbName string, logger *zap.Logger) (*MongoDB, error) func (*MongoDB) Collection ¶ func (m *MongoDB) Collection(name string) *mongo.Collection func (*MongoDB) Disconnect ¶ func (m *MongoDB) Disconnect(ctx context.Context) error Source Files ¶ View all Source files mongodb.go Click to show internal directories. Click to hide internal directories.