Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAPI ¶
func NewAPI(methodContextFactory MethodContextFactory, base EchoOrGroup, middlewares ...echo.MiddlewareFunc) apis.API
NewAPI creates a new echo API
Types ¶
type EchoOrGroup ¶
type EchoOrGroup interface { GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) }
EchoOrGroup is a common interface between echo.Echo and echo.Group
type EchoResponse ¶
type EchoResponse error
EchoResponse is currently just an error in github.com/labstack/echo
type MethodContextFactory ¶
type MethodContextFactory interface {
Context(echoCtx echo.Context, path string, resource resources.Resource) resources.MethodContext
}
func NewDefaultMethodContextFactory ¶
func NewDefaultMethodContextFactory(responseBuilderFactory responses.BuilderFactory) MethodContextFactory
Click to show internal directories.
Click to hide internal directories.