Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDbClientFtor ¶
func SingletonMongoClient ¶
func SingletonMongoClient(appCfg config.IAppConfig) MongoDbClientFtor
SingletonMongoClient is the functor that returns a singleton MongoDB client
func TransientMongoClient ¶
func TransientMongoClient(appCfg config.IAppConfig) MongoDbClientFtor
TransientMongoClient returns a new MongoClient every time it is called.
type MongoDbStoreFtor ¶
func NewMongoStore ¶
func NewMongoStore[TModel schema.ISchema](newMongoDb MongoDbClientFtor, dbName string, colName string) MongoDbStoreFtor[TModel]
Click to show internal directories.
Click to hide internal directories.