Documentation ¶
Index ¶
Constants ¶
View Source
const ( // UserAuthCollection is mongo collection name for UserAuth UserAuthCollection = "userauth" // UserTokenCollection is mongo collection name for UserToken UserTokenCollection = "usertoken" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserAuth ¶
type UserAuth struct { ID bson.ObjectId `bson:"_id,omitempty"` Username string `bson:"uname"` Email string `bson:"email"` Phone string `bson:"phone"` Password string `bson:"passwd"` Status UserStatus `bson:"status"` Audit }
UserAuth ...
type UserStatus ¶
type UserStatus string
const ( UserStatusActive UserStatus = "active" UserStatusSuspend UserStatus = "inactive" )
Click to show internal directories.
Click to hide internal directories.