Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModifyQuery ¶ added in v1.31.0
func ModifyQuery(query bson.M, queryModifiers ...QueryModifier) bson.M
func SplitAddresses ¶
Types ¶
type Config ¶
type Config struct { Scheme string `json:"scheme"` Addresses []string `json:"addresses"` TLS bool `json:"tls"` Database string `json:"database"` CollectionPrefix string `json:"collectionPrefix"` Username *string `json:"-"` Password *string `json:"-"` Timeout time.Duration `json:"timeout"` OptParams *string `json:"optParams"` }
Config describe parameters need to make a connection to a Mongo database
func (*Config) AsConnectionString ¶ added in v1.32.1
AsConnectionString constructs a MongoDB connection string from a Config
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) C ¶
func (s *Session) C() *mgo.Collection
func (*Session) ConstructUpdate ¶
Click to show internal directories.
Click to hide internal directories.