utils

package
v0.0.0-...-0702a85 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWTSecret = []byte("!!SECRET!!")

Functions

func GenerateJWT

func GenerateJWT(id uint) string

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