Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Addresses string `json:"addresses"` // TODO: This should be an array, but configor does not support that. Bleech! Fix?
Database string `json:"database"`
Collection string `json:"collection"`
Username *string `json:"username"`
Password *string `json:"password"`
Timeout *time.Duration `json:"timeout"`
SSL bool `json:"ssl"`
}
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) C ¶
func (s *Session) C() *mgo.Collection
Click to show internal directories.
Click to hide internal directories.