Documentation
¶
Overview ¶
Package usr has the User type and associated methods to create, modify and delete application users
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoUser = errors.Str("User does not exist")
ErrNoUser is an error when a user is passed that does not exist in the db
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
Username string
Password string
MobileID string
Email string
FirstName string
LastName string
audit.Audit
}
User represents an application user. A user can access multiple systems. The User-Application relationship is kept elsewhere...
func UserFromUsername ¶
func UserFromUsername(ctx context.Context, log zerolog.Logger, tx *sql.Tx, username string) (*User, error)
UserFromUsername constructs a User given a username
Click to show internal directories.
Click to hide internal directories.