endpoint

package
Version: v1.0.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL