Versions in this module Expand all Collapse all v1 v1.0.1 Aug 3, 2023 v1.0.0 Aug 3, 2023 Changes in this version + type DialContext struct + func (c *DialContext) Close() + func (c *DialContext) Ref() *Session + func (c *DialContext) UnRef(s *Session) + type MongoModule struct + func (slf *MongoModule) Init(url string, sessionNum uint32, dialTimeout time.Duration, ...) error + func (slf *MongoModule) Ref() *Session + func (slf *MongoModule) UnRef(s *Session) + type Session struct + func (s *Session) EnsureCounter(db string, collection string, id string) error + func (s *Session) EnsureIndex(db string, collection string, key []string, bBackground bool) error + func (s *Session) EnsureUniqueIndex(db string, collection string, key []string, bBackground bool) error + func (s *Session) NextSeq(db string, collection string, id string) (int, error) + type SessionHeap []*Session + func (h *SessionHeap) Pop() interface{} + func (h *SessionHeap) Push(s interface{}) + func (h SessionHeap) Len() int + func (h SessionHeap) Less(i, j int) bool + func (h SessionHeap) Swap(i, j int)