validator

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilErrorHandler = errors.New("error handler cannot be nil")
)

Functions

This section is empty.

Types

type ErrorHandler

type ErrorHandler func(w http.ResponseWriter, err error)

ErrorHandler handles the possible JWT validation error

func NewDefaultErrorHandler

func NewDefaultErrorHandler(
	jsonEncoder gonethttpjson.Encoder,
) (ErrorHandler, error)

NewDefaultErrorHandler function

Jump to

Keyboard shortcuts

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