errormw

package
v0.0.0-...-a52efcf Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnwrapError

func UnwrapError(logger log.Logger) endpoint.Middleware

UnwrapError middleware to move a business error found in the response parameter into the error parameter. This function should be called after circuit breaking and/or retry logic so a business error will not trigger those middlewares. It's use is primarily as outer shell middleware at the client end so a client method implementation only needs to test for error instead of both error and response payload business error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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