errorhandlers

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 config.PipelineObjectType,
	config map[string]any,
) (ErrorHandler, error)

type ErrorHandlerTypeFactory

type ErrorHandlerTypeFactory func(id string, t config.PipelineObjectType, 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