errorhandlers

package
v0.14.2-alpha Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: Apache-2.0 Imports: 12 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 {
	ID() string
	CanExecute(ctx heimdall.Context, causeErr error) bool
	Execute(ctx heimdall.Context, causeErr error) error
	WithConfig(config map[string]any) (ErrorHandler, error)
}

func CreatePrototype

func CreatePrototype(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