routerchecker

package
v1.8.3-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	Rule string `json:"rule"`
}

Metadata is the routerchecker middleware config.

type Middleware

type Middleware struct {
	// contains filtered or unexported fields
}

Middleware is an routerchecker middleware.

func NewMiddleware

func NewMiddleware(logger logger.Logger) *Middleware

NewRouterCheckerMiddleware returns a new routerchecker middleware.

func (*Middleware) GetHandler

func (m *Middleware) GetHandler(metadata middleware.Metadata) (
	func(h fasthttp.RequestHandler) fasthttp.RequestHandler, error,
)

GetHandler retruns the HTTP handler provided by the middleware.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL