Versions in this module Expand all Collapse all v2 v2.1.0 Dec 11, 2025 Changes in this version + type MongoModule struct + func (mm *MongoModule) Init(uri string, maxOperatorTimeOut time.Duration) error + func (mm *MongoModule) Start() error + func (mm *MongoModule) Stop() error + func (mm *MongoModule) TakeSession() Session + type Session struct + func (s *Session) Collection(db string, collection string) *mongo.Collection + func (s *Session) CountDocument(db string, collection string, filter interface{}) (int64, error) + func (s *Session) EnsureIndex(db string, collection string, indexKeys [][]string, bBackground bool, ...) error + func (s *Session) EnsureUniqueIndex(db string, collection string, indexKeys [][]string, bBackground bool, ...) error + func (s *Session) GetDefaultContext() (context.Context, context.CancelFunc) + func (s *Session) NextSeq(db string, collection string, id interface{}) (int, error)