Documentation ¶
Index ¶
- func Authorize(authorizer authz.Authorizer) echo.MiddlewareFunc
- func ChainedSkipper(skippers ...echomiddelware.Skipper) echomiddelware.Skipper
- 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
- func WebsocketSkipper(c echo.Context) bool
- 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 ChainedSkipper ¶ added in v1.2.2
func ChainedSkipper(skippers ...echomiddelware.Skipper) echomiddelware.Skipper
ChainedSkipper creates a skipper that skips if any of the provided skippers returns true
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.
func VersionNotifyLogger ¶ added in v1.2.1
func WebsocketSkipper ¶ added in v1.2.2
func WebsocketSkipper(c echo.Context) bool
Types ¶
Click to show internal directories.
Click to hide internal directories.