utils

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectionURLBuilder added in v1.2.0

func ConnectionURLBuilder(n string) (string, error)

ConnectionURLBuilder func for building URL connection.

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