models

package
v0.0.0-...-1a577f3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL