Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpsertDeclareTable ¶
func UpsertDeclareTable(d *Declare) mgo.Change
Create table update object for token table
Types ¶
type HeartsAndChoices ¶
type PairUpsert ¶
func NewDeclareTable ¶
func NewDeclareTable(id string) PairUpsert
type TypeUserFirst ¶
type TypeUserFirst struct { Id string `json:"roll"` AuthCode string `json:"authCode"` PassHash string `json:"passHash"` PubKey string `json:"pubKey"` PrivKey string `json:"privKey"` Data string `json:"data"` }
----------------------------------------
type TypeUserNew ¶
type TypeUserNew struct { Id string `json:"roll"` Name string `json:"name"` Email string `json:"email"` Gender string `json:"gender"` Image string `json:"image"` PassHash string `json:"passHash"` }
----------------------------------------
type User ¶
type User struct { Id string `json:"_id" bson:"_id"` Name string `json:"name" bson:"name"` Email string `json:"email" bson:"email"` Gender string `json:"gender" bson:"gender"` Image string `json:"image" bson:"image"` Pass string `json:"passHash" bson:"passHash"` PrivK string `json:"privKey" bson:"privKey"` PubK string `json:"pubKey" bson:"pubKey"` AuthC string `json:"authCode" bson:"authCode"` Data string `json:"data" bson:"data"` Submit bool `json:"submitted" bson:"submitted"` Matches string `json:"matches" bson:"matches"` Vote int `json:"voted" bson:"voted"` Dirty bool `json:"dirty" bson:"dirty"` SPass string `json:"savepass" bson:"savepass"` }
User represents the structure of our resource
func NewUser ¶
func NewUser(info *TypeUserNew) User
func (User) FirstLogin ¶
func (u User) FirstLogin(info *TypeUserFirst) mgo.Change
Click to show internal directories.
Click to hide internal directories.