errorhandlers

package
v0.10.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorHandlerDefault         = "default"
	ErrorHandlerRedirect        = "redirect"
	ErrorHandlerWWWAuthenticate = "www_authenticate"
)

Variables

View Source
var (
	ErrUnsupportedErrorHandlerType = errors.New("error handler type unsupported")
)

Functions

This section is empty.

Types

type ErrorHandler

type ErrorHandler interface {
	Execute(ctx heimdall.Context, err error) (bool, error)
	WithConfig(config map[string]any) (ErrorHandler, error)
}

func CreateErrorHandlerPrototype

func CreateErrorHandlerPrototype(id string, typ string, config map[string]any) (ErrorHandler, error)

type ErrorHandlerTypeFactory

type ErrorHandlerTypeFactory func(id string, typ string, c map[string]any) (bool, ErrorHandler, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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