Documentation ¶
Index ¶
- func Authorize(authorizer authz.Authorizer) echo.MiddlewareFunc
- func Otel() echo.MiddlewareFunc
- func PathMatchSkipper(paths []string) echomiddelware.Skipper
- func RequestLogger(logger zerolog.Logger, logLevel zerolog.Level) echo.MiddlewareFunc
- func ServerHeader(headers map[string]string) echo.MiddlewareFunc
- func SetContentType(contentType string) echo.MiddlewareFunc
- func VersionNotifyLogger(logger *zerolog.Logger, serverVersion semver.Version) echo.MiddlewareFunc
- type Notification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Authorize ¶ added in v1.2.1
func Authorize(authorizer authz.Authorizer) echo.MiddlewareFunc
Authorize only allows the HTTP request to continue if the passed authorizer permits the request.
func PathMatchSkipper ¶
func PathMatchSkipper(paths []string) echomiddelware.Skipper
func RequestLogger ¶
func ServerHeader ¶ added in v1.2.1
ServerHeader middleware adds HTTP Headers `headers` to response
func SetContentType ¶
func SetContentType(contentType string) echo.MiddlewareFunc
SetContentType returns a middleware which sets the response content type.
Types ¶
Click to show internal directories.
Click to hide internal directories.