render

package
v0.0.0-...-79c48be Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodeValue             = "VALUE"
	CodeUserExists        = "USER_EXISTS"
	CodeInternal          = "INTERNAL"
	CodeTokenRequired     = "ACCESS_TOKEN_REQUIRED"
	CodeTokenInvalid      = "ACCESS_TOKEN_INVALID"
	CodeTokenExpired      = "ACCESS_TOKEN_EXPIRED"
	CodeTokenRevoked      = "ACCESS_TOKEN_REVOKED"
	CodeTokenInsufficient = "FORBIDDEN"
)

Variables

This section is empty.

Functions

func Err

func Err(w *fasthttp.RequestCtx, code, mes string)

func ErrAccessTokenExpired

func ErrAccessTokenExpired(w *fasthttp.RequestCtx)

func ErrAccessTokenInsufficient

func ErrAccessTokenInsufficient(w *fasthttp.RequestCtx)

func ErrAccessTokenInvalid

func ErrAccessTokenInvalid(w *fasthttp.RequestCtx)

func ErrAccessTokenRequired

func ErrAccessTokenRequired(w *fasthttp.RequestCtx)

func ErrAccessTokenRevoked

func ErrAccessTokenRevoked(w *fasthttp.RequestCtx)

func ErrBadReq

func ErrBadReq(w *fasthttp.RequestCtx, code, mes string)

func ErrConflict

func ErrConflict(w *fasthttp.RequestCtx, code, mes string)

func ErrInternal

func ErrInternal(w *fasthttp.RequestCtx, mes string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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