utils

package
v0.0.0-...-b76b2b2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWTSecret = []byte(os.Getenv("SECRET_KEY"))

Functions

func GenerateJWT

func GenerateJWT(id uuid.UUID, role model.RoleName) (string, error)

Types

type Error

type Error struct {
	Errors map[string]interface{} `json:"errors"`
}

func AccessForbidden

func AccessForbidden() Error

func NewError

func NewError(err error) Error

func NewValidatorError

func NewValidatorError(err error) Error

func NotFound

func NotFound() Error

Jump to

Keyboard shortcuts

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