routers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: AGPL-3.0, AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ErrGeneric = `{"errno": "404", "message": "Bad Request"}`

Variables

View Source
var (
	ErrAuthParse   = errors.New("authorization token could not be parsed")
	ErrPermissions = errors.New("insufficient permissions")
)

Functions

func AuthorizationCheck

func AuthorizationCheck(c echo.Context) (bool, bool)

func FullAuthCheck

func FullAuthCheck(c echo.Context) error

func HasRole

func HasRole(c echo.Context, reqrole string) bool

func ListenAndServe

func ListenAndServe() error

func SelfAuthCheck

func SelfAuthCheck(c echo.Context) *jwtExtendedClaims

Types

This section is empty.

Jump to

Keyboard shortcuts

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