Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateNewAccessToken ¶
func NewValidator ¶
func NewValidator() *validator.Validate
NewValidator func for creating a new validator for model fields.
func StartServer ¶
func StartServer(a *fiber.App)
func StartServerWithGracefulShutdown ¶
func StartServerWithGracefulShutdown(a *fiber.App)
func ValidateUUID ¶
func ValidatorErrors ¶
ValidatorErrors func for showing validation error for each invalid field.
Types ¶
type TokenMetadata ¶
type TokenMetadata struct {
Expires int64
}
TokenMetadata struct to describe metadata in JWT.
func ExtractTokenMetadata ¶
func ExtractTokenMetadata(c *fiber.Ctx) (*TokenMetadata, error)
ExtractTokenMetadata func to extract metadata from JWT.
Click to show internal directories.
Click to hide internal directories.