utils

package
v0.0.0-...-6dfac28 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 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

type StandardResponse

type StandardResponse struct {
	Success      bool
	ErrorMessage string
	Data         interface{}
}

Jump to

Keyboard shortcuts

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