errorhandlers

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 13 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 CreationContext

type CreationContext interface {
	Watcher() watcher.Watcher
	KeyHolderRegistry() keyholder.Registry
	CertificateObserver() certificate.Observer
}

type ErrorHandler

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

func CreatePrototype

func CreatePrototype(ctx CreationContext, id string, typ string, config map[string]any) (ErrorHandler, error)

type TypeFactory

type TypeFactory func(ctx CreationContext, 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