Documentation ¶
Overview ¶
Package echotransport wraps Echo for use as a resttransport implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(c *Config) resttransport.Transport
New returns a Transport that wraps an Echo application.
Types ¶
type Config ¶
type Config struct { Echo EchoOrContext AuthenticationMiddleware []echo.MiddlewareFunc UserContextKey string }
Config holds configuration information for the Echo Transport.
type EchoOrContext ¶
type EchoOrContext interface { DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route }
EchoOrContext represents an Echo application struct or Context interface.
Click to show internal directories.
Click to hide internal directories.