Documentation ¶
Index ¶
- func Authorize(authorizer authz.Authorizer) echo.MiddlewareFunc
- func ChainedSkipper(skippers ...echomiddelware.Skipper) echomiddelware.Skipper
- func CustomHTTPErrorHandler(err error, c echo.Context)
- 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 VersionCheckMiddleware(serverVersion, minVersion semver.Version) echo.MiddlewareFunc
- func VersionNotifyLogger(logger *zerolog.Logger, serverVersion semver.Version) echo.MiddlewareFunc
- func WebsocketSkipper(c echo.Context) bool
- type Notification
- type VersionCheckError
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 CustomHTTPErrorHandler ¶ added in v1.5.0
func CustomHTTPErrorHandler(err error, c echo.Context)
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 VersionCheckMiddleware ¶ added in v1.4.0
VersionCheckMiddleware returns a middleware that checks if the client version is at least minVersion.
func VersionNotifyLogger ¶ added in v1.2.1
func WebsocketSkipper ¶ added in v1.2.2
func WebsocketSkipper(c echo.Context) bool
Types ¶
type Notification ¶ added in v1.2.1
Click to show internal directories.
Click to hide internal directories.