Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Identity ¶
type Identity struct { Type IdentityType `bson:"type" json:"type" binding:"required"` Value string `bson:"value" json:"value" binding:"required"` Verified bool `bson:"verified" json:"verified"` }
type IdentityType ¶
type IdentityType string
const ( PhoneNumber IdentityType = "phone_number" EmailAddress IdentityType = "email_address" )
type ReferralRequest ¶
type ReferralResponse ¶
func (*ReferralResponse) Read ¶
func (r *ReferralResponse) Read(body io.ReadCloser) error
type Registration ¶
type Response ¶
type User ¶
type User struct { ID bson.ObjectId `bson:"_id" json:"id"` Username string `bson:"username" json:"username"` Password string `bson:"password" json:"password"` Created time.Time `bson:"created" json:"created"` LastSeen time.Time `bson:"last_seen" json:"last_seen"` Identities []Identity `bson:"identities" json:"identities"` }
Click to show internal directories.
Click to hide internal directories.