Documentation
¶
Index ¶
- func AuthMiddlewareErrHandler(err error, _ echo.Context) error
- func DebugSkipper(_ echo.Context) bool
- func DefaultSkipper(c echo.Context) bool
- func DefaultVersionHeaderSkipper(_ echo.Context) bool
- func VersionHeader(cfg VersionHeaderConfig) echo.MiddlewareFunc
- func WebsocketAuthorizer(config *config.Config) echo.MiddlewareFunc
- func ZapLogger(log *zap.Logger, cfg *config.Config) echo.MiddlewareFunc
- type VersionHeaderConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthMiddlewareErrHandler ¶ added in v1.43.1
func DebugSkipper ¶
func DebugSkipper(_ echo.Context) bool
DebugSkipper is the skipper used in debug mode, we log everything.
func DefaultSkipper ¶
func DefaultSkipper(c echo.Context) bool
DefaultSkipper is what we use as a default. Some endpoints are excluded from the logs to avoid flooding the logs and because they are not bringing a lot of value.
func DefaultVersionHeaderSkipper ¶ added in v1.42.0
func DefaultVersionHeaderSkipper(_ echo.Context) bool
func VersionHeader ¶ added in v1.30.0
func VersionHeader(cfg VersionHeaderConfig) echo.MiddlewareFunc
VersionHeader is a middleware that adds the version of the relayproxy in the header.
func WebsocketAuthorizer ¶ added in v1.12.0
WebsocketAuthorizer is a middleware that checks in the params if we have the needed parameter for authorization
Types ¶
type VersionHeaderConfig ¶ added in v1.42.0
type VersionHeaderConfig struct { Skipper middleware.Skipper RelayProxyConfig *config.Config }
VersionHeaderConfig defines the configuration for the middleware.
Click to show internal directories.
Click to hide internal directories.