Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobLogEntry ¶
type User ¶
type User struct { Email string PasswordHash string AccessKey string FullName string Admin bool Verified bool Enabled bool Unlimited bool JobCount int PageCount int LastJob time.Time LastVerificationEmail time.Time SignupDate time.Time DisableEmailDelivery bool AllowNuisanceJobs bool }
func NewUser ¶
NewUser is a convenience function to create a new user with the provided email and password.
func (*User) CheckPassword ¶
CheckPassword will return true if the provided password is valid for the user.
func (*User) GenerateAccessKey ¶
func (u *User) GenerateAccessKey()
GenerateAccessKey generates and sets a new random access key on the user.
func (*User) SetPassword ¶
Click to show internal directories.
Click to hide internal directories.