Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
func NewConnection ¶
func NewConnection(ctx context.Context, dbName string) (*Connection, error)
func (*Connection) CheckIfCollectionExists ¶
func (c *Connection) CheckIfCollectionExists(collName string) (bool, error)
func (*Connection) GetCollection ¶
func (c *Connection) GetCollection(collName string) *mongo.Collection
func (*Connection) NewCollection ¶
func (c *Connection) NewCollection(collName string) (*mongo.Collection, error)
Click to show internal directories.
Click to hide internal directories.