package
0.0.0-20240517133509-e637dddf13cc
Repository: https://github.com/e4kere/project.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
ValidateEmail checks that the Email field is not an empty string and that it matches the regex for email addresses, validator.EmailRX.
ValidatePasswordPlaintext validtes that the password is not an empty string and is between 8 and 72 bytes long.
No description provided by the author
No description provided by the author
# Constants
ScopeActivation defines the "activate" scope for scope in the tokens table.
ScopeActivation defines the "activate" scope for scope in the tokens table.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
User type whose fields describe a user.
UserModel struct wraps a sql.DB connection pool and allows us to work with the User struct type and the users table in our database.
# Type aliases
Permissions holds the permission codes for a single user.