Documentation ¶
Index ¶
- type Config
- type Iterator
- type Session
- func (s *Session) C() *mgo.Collection
- func (s *Session) Close()
- func (s *Session) Find(query store.Query, result interface{}) error
- func (s *Session) FindAll(query store.Query, sort []string, filter store.Filter) store.Iterator
- func (s *Session) Insert(document interface{}) error
- func (s *Session) InsertAll(documents ...interface{}) error
- func (s *Session) IsClosed() bool
- func (s *Session) RemoveAll(selector interface{}) error
- func (s *Session) Update(selector interface{}, update interface{}) error
- func (s *Session) UpdateAll(selector interface{}, update interface{}) error
- type Status
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Addresses string `yaml:"addresses"` // TODO: This should be an array, but configor doesn't support that. Bleech! Fix? Database string `yaml:"database"` Collection string `yaml:"collection"` Username *string `yaml:"username"` Password *string `yaml:"password"` Timeout *time.Duration `yaml:"timeout"` SSL bool `yaml:"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.