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"` Username string `bson:"username"` Password string `bson:"password"` }
User contains user's information
var NilUser User
NilUser is the Nil value for User
func (*User) IsCorrectPassword ¶
IsCorrectPassword checks if the provided password is correct or not
Click to show internal directories.
Click to hide internal directories.