fxerrors

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2018 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(params HandlerParams) emperror.Handler

NewHandler returns a new error handler.

Types

type HandlerParams

type HandlerParams struct {
	dig.In

	Logger   log.Logger         `optional:"true"`
	Handlers []emperror.Handler `group:"error"`
}

HandlerParams provides a set of dependencies for an error handler constructor.

type HandlerResult added in v0.6.2

type HandlerResult struct {
	dig.Out

	Handler emperror.Handler `group:"error"`
}

HandlerResult can be used to provide a Handler attached to the error group.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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