Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct { ID primitive.ObjectID `bson:"_id" json:"id"` Name string `bson:"name" json:"name"` About string `bson:"about" json:"about"` Email string `bson:"email" json:"email"` Password string `bson:"password" json:"-"` SuperUser bool `bson:"super_user" json:"super_user"` Thumbnail primitive.ObjectID `bson:"thumbnail" json:"thumbnail"` CreatedAt time.Time `bson:"created_at" json:"created_at"` }
User model
func AuthByEmail ¶
AuthByEmail authenticate with email
func LoadByRequest ¶
LoadByRequest load user from reqeust
Click to show internal directories.
Click to hide internal directories.