Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Example = Model{ ID: primitive.NewObjectID(), Email: "someone@something.com", Password: "password", }
Example ... A sample use
Functions ¶
Types ¶
type Model ¶
type Model struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Email string `bson:"email" json:"email" binding:"required,email"` Bio Bio `bson:"bio" json:"bio" binding:"omitempty"` Password string `bson:"password" json:"password" binding:"required,min=8"` PasswordConfirmation string `json:"passwordConfirmation" binding:"required,min=8,eqfield=Password"` Role string `bson:"role" json:"role" binding:"required"` EmployeeID string `bson:"employee_id" json:"employee_id" binding:"omitempty"` }
Model : user's model
func (*Model) CheckPassword ¶
CheckPassword ...
Click to show internal directories.
Click to hide internal directories.