Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDB ¶
type MongoDB struct { Conf *config.MongoConfig // contains filtered or unexported fields }
func NewMongoDB ¶
func NewMongoDB(log *slog.Logger, conf *config.MongoConfig) *MongoDB
func (*MongoDB) GetCollection ¶
func (db *MongoDB) GetCollection(collectionName string) *mongo.Collection
func (*MongoDB) GetCollectionMessages ¶
func (db *MongoDB) GetCollectionMessages() *mongo.Collection
func (*MongoDB) GetDatabase ¶
Click to show internal directories.
Click to hide internal directories.