Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty" binding:"-"` FirstName string `json:"firstName" bson:"firstName" form:"firstName" binding:"required"` LastName string `json:"lastName" bson:"lastName" form:"lastName" binding:"required"` Email string `json:"email" bson:"email" houseflow:"email" form:"email" binding:"required,email"` Password string `json:"password" bson:"password" form:"password" binding:"required,min=8,max=20"` }
User struct, used to either creating user, or this one in DB
func (*User) CreateAccessToken ¶
CreateAccessToken creates JWT access token for user
Click to show internal directories.
Click to hide internal directories.