Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Controller ¶
func Controller(obj interface{}) func(echo.Context) error
Controller returns echo controller from a struct written in suggested form.
Types ¶
type Server ¶
type Server interface { Group(prefix string, m ...echo.MiddlewareFunc) *echo.Group GET(path string, controller echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route POST(path string, controller echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PUT(path string, controller echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route DELETE(path string, controller echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PATCH(path string, controller echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route OPTIONS(path string, controller echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route HEAD(path string, controller echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route }
Server is interface for Router
Click to show internal directories.
Click to hide internal directories.