Documentation
¶
Overview ¶
Package middleware provides different middlewares than can be used by the http transports
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyMiddleware ¶
ApplyMiddleware adds all the generic middleware to our app
Types ¶
type CustomValidator ¶
type CustomValidator struct {
// contains filtered or unexported fields
}
CustomValidator enables us to use the validator package
func (*CustomValidator) Validate ¶
func (cv *CustomValidator) Validate(i interface{}) error
Validate used to validate our HTTP payloads depending on the `validate` struct tags
type EchoWrapper ¶
type EchoWrapper struct {
// contains filtered or unexported fields
}
EchoWrapper is a struct for creating the otel middleware
func (*EchoWrapper) Middleware ¶
func (e *EchoWrapper) Middleware() echo.MiddlewareFunc
Middleware returns an echo.MiddlewareFunc to be used with Echo.Use()
Click to show internal directories.
Click to hide internal directories.