echo

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(ep endpoint.Endpoint, opts ...Option) func(c echo.Context) error

Handler is function to adapt go-kit to echo http framework.

Types

type Option

type Option interface {
	Apply(o *options)
}

func WithDecoder

func WithDecoder(decoder func(c echo.Context) (interface{}, error)) Option

func WithEncoder

func WithEncoder(encoder func(c echo.Context, response interface{}) error) Option

func WithErrorHandler

func WithErrorHandler(errorHandler func(c echo.Context, err error) error) Option

func WithMiddleware added in v1.0.1

func WithMiddleware(middlewares ...echo.MiddlewareFunc) Option

Jump to

Keyboard shortcuts

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