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.
Click to show internal directories.
Click to hide internal directories.