utils

package
v0.0.0-...-4a9023c Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: MIT Imports: 4 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

add switch other variant

func NewValidatorError

func NewValidatorError(err error) Error

func NotFound

func NotFound() Error

func ResponseSuccessUpload

func ResponseSuccessUpload() Error

func SuccessUpload

func SuccessUpload(uri string) Error

Jump to

Keyboard shortcuts

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