package
0.0.0-20241130040357-c6b848074d60
Repository: https://github.com/lokatalent/backend_go.git
Documentation: pkg.go.dev
# Functions
ContextGetUser returns the current user data stored in the request.
ErrInternalServer logs server error before returning the actual error.
GenerateTokens generates the signed access and refresh tokens, with expiration time.
HashPassword returns the bcrypt hash of the password.
IsAdmin checks if a user has admin priviledge.
No description provided by the author
No description provided by the author
IsValidEmail validates the structure of a given email address.
No description provided by the author
IsValidPhoneNumber validates the structure of a given phone number.
IsValidServiceRole checks if the specified role is a valid service role.
No description provided by the author
IsValidUUID validates given UUID.
No description provided by the author
No description provided by the author
ParseBool converts boolean values in string.
No description provided by the author
No description provided by the author
RandomInt generates a radom integer between min and max.
ValidateContentType verifies that request header content-type is supported.
ValidatePassword checks if the provided password is correct.
ValidateRefreshToken validates the provided JWT.
checks if a place address satisfy the expected format.
No description provided by the author
No description provided by the author
# Constants
tokens configuration.
Content-Type configurations.
Content-Type configurations.
No description provided by the author
Database connection string format.
No description provided by the author
application environment.
application environment.
application environment.
Errors.
No description provided by the author
tokens configuration.
# Structs
No description provided by the author
No description provided by the author
Config holds configuration data loaded from .env file.
No description provided by the author
No description provided by the author
CustomValidator implements the validator interface of echo package.
No description provided by the author
JSON Web Token.
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author