Documentation
¶
Index ¶
Constants ¶
View Source
const UserCollectionName = "user"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserDocument ¶
type UserDocument struct {
Id bson.ObjectId `bson:"_id"`
Email string `bson:"email"`
HashedPass []byte `bson:"hashedPass"`
Roles []string `bson:"roles"`
CreatedAt time.Time `bson:"createdAt"`
ConfirmationKey string `bson:"confirmationKey"`
IsConfirmed bool `bson:"isConfirmed"`
ResetKey string `bson:"resetKey"`
RequestedResetAt time.Time `bson:"requestedResetAt"`
IsSuspended bool `bson:"isSuspended"`
SignedOutAt time.Time `bson:"signedOutAt"`
Profile map[string]interface{} `bson:"profile"`
}
Click to show internal directories.
Click to hide internal directories.