Documentation ¶
Index ¶
- func RResponse(v interface{}) string
- func ToBson(data string) bson.M
- type DB
- func (d DB) Add(items ...interface{}) error
- func (d DB) C(item interface{}, ret interface{}) error
- func (d DB) Close()
- func (d DB) Count(item interface{}) (int, error)
- func (d DB) New(item interface{}) interface{}
- func (d DB) PreVerify(item interface{}) error
- func (d DB) Q(item interface{}) *mgo.Collection
- func (d DB) Query(item interface{}, query interface{}) *mgo.Query
- func (d DB) Remove(items ...interface{}) error
- func (d DB) RemoveAll(item interface{}, query interface{}) (*mgo.ChangeInfo, error)
- func (d DB) Save(items interface{}) error
- func (d DB) Update(items interface{}) error
- func (d DB) UpdateAll(item interface{}, query interface{}, update interface{}) (*mgo.ChangeInfo, error)
- func (d DB) Upsert(item interface{}) error
- type MyObject
- type O
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB struct { MoDb *mgo.Database S *mgo.Session }
Directories ¶
Path | Synopsis |
---|---|
Godeps
|
|
_workspace/src/github.com/asaskevich/govalidator
Package govalidator is package of validators and sanitizers for strings, structs and collections.
|
Package govalidator is package of validators and sanitizers for strings, structs and collections. |
_workspace/src/gopkg.in/mgo.v2
Package mgo offers a rich MongoDB driver for Go.
|
Package mgo offers a rich MongoDB driver for Go. |
_workspace/src/gopkg.in/mgo.v2/bson
Package bson is an implementation of the BSON specification for Go: http://bsonspec.org It was created as part of the mgo MongoDB driver for Go, but is standalone and may be used on its own without the driver.
|
Package bson is an implementation of the BSON specification for Go: http://bsonspec.org It was created as part of the mgo MongoDB driver for Go, but is standalone and may be used on its own without the driver. |
_workspace/src/gopkg.in/mgo.v2/internal/scram
Pacakage scram implements a SCRAM-{SHA-1,etc} client per RFC5802.
|
Pacakage scram implements a SCRAM-{SHA-1,etc} client per RFC5802. |
Click to show internal directories.
Click to hide internal directories.