Documentation ¶ Index ¶ func GetSession() *mgo.Session type User Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetSession ¶ func GetSession() *mgo.Session GetSession return a mongo session Types ¶ type User ¶ type User struct { ID bson.ObjectId `json:"id" bson:"_id"` Avatar string `json:"avatar" bson:"avatar"` Name string `json:"name" bson:"name"` Gender string `json:"gender" bson:"gender"` Age int `json:"age" bson:"age"` } User represents the structure of our resource Source Files ¶ View all Source files session.go user.go Click to show internal directories. Click to hide internal directories.