utils

package
v0.1.1-0...-b30295a Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

JWTSecret to set secret key

Functions

func GenerateJWT

func GenerateJWT(id uint) string

GenerateJWT to generate token

Types

type Error

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

Error struct

func AccessForbidden

func AccessForbidden() Error

AccessForbidden func

func NewError

func NewError(err error) Error

NewError struct

func NewValidatorError

func NewValidatorError(err error) Error

NewValidatorError func

func NotFound

func NotFound() Error

NotFound func

Jump to

Keyboard shortcuts

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