Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddleware ¶
func NewMiddleware(logger logger.Logger) middleware.Middleware
NewRouterCheckerMiddleware returns a new routerchecker middleware.
Types ¶
type Metadata ¶
type Metadata struct {
Rule string `json:"rule" mapstructure:"rule"`
}
Metadata is the routerchecker middleware config.
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware is an routerchecker middleware.
func (*Middleware) GetComponentMetadata ¶ added in v1.11.0
func (m *Middleware) GetComponentMetadata() map[string]string
func (*Middleware) GetHandler ¶
func (m *Middleware) GetHandler(_ context.Context, metadata middleware.Metadata) (func(next http.Handler) http.Handler, error)
GetHandler retruns the HTTP handler provided by the middleware.
Click to show internal directories.
Click to hide internal directories.