Documentation ¶
Index ¶
- type DialContext
- type MongoModule
- type Session
- func (s *Session) EnsureCounter(db string, collection string, id string) error
- func (s *Session) EnsureIndex(db string, collection string, key []string) error
- func (s *Session) EnsureUniqueIndex(db string, collection string, key []string) error
- func (s *Session) NextSeq(db string, collection string, id string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DialContext ¶
func (*DialContext) Take ¶
func (c *DialContext) Take() *Session
type MongoModule ¶
type MongoModule struct {
// contains filtered or unexported fields
}
func (*MongoModule) Take ¶
func (slf *MongoModule) Take() *Session
type Session ¶
type Session struct {
*mgo.Session
}
session
func (*Session) EnsureCounter ¶
goroutine safe
func (*Session) EnsureIndex ¶
goroutine safe
func (*Session) EnsureUniqueIndex ¶
goroutine safe
Click to show internal directories.
Click to hide internal directories.