utils

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNewJWTAccessToken

func GenerateNewJWTAccessToken(credentials []string, id string) (string, error)

GenerateNewJWTAccessToken func for generate a new JWT access (private) token with user ID and permissions.

func GenerateNewJWTRefreshToken

func GenerateNewJWTRefreshToken() (string, error)

GenerateNewJWTRefreshToken func for generate a new JWT refresh (public) token.

func StartServerWithGracefulShutdown

func StartServerWithGracefulShutdown(server *http.Server)

StartServerWithGracefulShutdown function for starting server with a graceful shutdown.

func ValidatorErrors

func ValidatorErrors(err error) map[string]string

ValidatorErrors func for show validation errors for each invalid fields.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL