routeralias

package
v0.0.0-...-0a06464 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMiddleware

func NewMiddleware(logger logger.Logger) middleware.Middleware

NewMiddleware returns a new routerchecker middleware.

Types

type Middleware

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

Middleware is an routeralias middleware.

func (*Middleware) GetComponentMetadata

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.

Jump to

Keyboard shortcuts

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