Documentation
¶
Index ¶
- func APIName(apiName string) echo.MiddlewareFunc
- func AuditBody(dbSession *cdb.Session) echo.MiddlewareFunc
- func AuditLog(dbSession *cdb.Session) echo.MiddlewareFunc
- func CORS() echo.MiddlewareFunc
- func Logger() echo.MiddlewareFunc
- func NotFoundHandler(cfg *config.Config) echo.MiddlewareFunc
- func Secure() echo.MiddlewareFunc
- type ResponseError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIName ¶ added in v1.2.0
func APIName(apiName string) echo.MiddlewareFunc
APIName returns a middleware that sets the API name in the request context
func CORS ¶
func CORS() echo.MiddlewareFunc
CORS configures echo to accept requests from scripts from domains different than the API will be served from
func NotFoundHandler ¶
func NotFoundHandler(cfg *config.Config) echo.MiddlewareFunc
NotFoundHandler returns a middleware that returns a 404 status code for unmatched routes
func Secure ¶
func Secure() echo.MiddlewareFunc
Secure middleware configures echo with secure headers
Types ¶
type ResponseError ¶
Click to show internal directories.
Click to hide internal directories.