Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupWrapper ¶
func GroupWrapper[A any](g *echo.Group, path string, httpMethod HttpMethod, f func(a A, ctx echo.Context) error)
GroupWrapper a utility function to be able to bind sent parameters to the handler in a group as golang struct type and validate them.
Types ¶
type Controller ¶
type Controller interface { // Setup controllers should set up their routes, middlewares and ... in this method Setup(*Server) }
Controller each package wanting to define request handlers should implement this interface
type HttpMethod ¶
type HttpMethod string
HttpMethod methods which echo server accepts
const ( MethodGet HttpMethod = "GET" MethodHead HttpMethod = "HEAD" MethodPost HttpMethod = "POST" MethodPut HttpMethod = "PUT" MethodPatch HttpMethod = "PATCH" // RFC 5789 MethodDelete HttpMethod = "DELETE" MethodConnect HttpMethod = "CONNECT" MethodOptions HttpMethod = "OPTIONS" MethodTrace HttpMethod = "TRACE" )
Methods copied from echo itself
Click to show internal directories.
Click to hide internal directories.