Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DATABASE *mgo.Database = nil
)
Functions ¶
func InjectDatabase ¶
Types ¶
type GithubOAuth ¶
type GithubOAuth struct { Token string `form:"-" bson:"tk,omitempty"` Code string `form:"code" bson:"c,omitempty"` State string `form:"state" binding:"required" bson:"s"` Timeout time.Time `form:"-" bson:"t"` }
the model for a basic Github OAuth response
type User ¶
type User struct { Id int64 `form:"-" json:"id"` Name string `form:"name" json:"name" binding:"required"` Email string `form:"email" json:"email" binding:"required"` Password string `form:"password" json:"password" binding:"required"` Location string `form:"location" json:"location"` Created time.Time `form:"-" json:"created"` Updated time.Time `form:"-" json:"updated"` CreatedWith string `form:"createdWith" json:"createdWith" binding:"required"` GithubId int64 `form:"githubId" json:"githubId"` BitbucketId int64 `form:"bitbucketId" json:"bitbucketId"` LinkedinId int64 `form:"linkedinId" json:"linkedinId"` }
the model for a basic User
Click to show internal directories.
Click to hide internal directories.