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 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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.