Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingEndpointMiddleware ¶
func LoggingEndpointMiddleware(methodName string) endpoint.Middleware
LoggingEndpointMiddleware returns an endpoint middleware that logs the duration of each invocation, and the resulting error, if any.
func PutLoggerToContextMiddleware ¶
func PutLoggerToContextMiddleware(logger *logrus.Entry) endpoint.Middleware
func RetryMiddleware ¶
func RetryMiddleware(retryBackoff backoff.BackOff) endpoint.Middleware
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Err error
}
func (ErrorResponse) Failed ¶
func (e ErrorResponse) Failed() error
Click to show internal directories.
Click to hide internal directories.