middleware

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComposeHTTPMiddleware

func ComposeHTTPMiddleware(handler http.Handler, mws ...HTTPMiddleware) http.Handler

Types

type HTTPMiddleware

type HTTPMiddleware func(handler http.Handler) http.Handler

func WrapMiddleware

func WrapMiddleware(mws ...Middleware) HTTPMiddleware

type Handler

type Handler func(ctx context.Context, req interface{}) (interface{}, error)

type Middleware

type Middleware func(Handler) Handler

func ComposeMiddleware

func ComposeMiddleware(mws ...Middleware) Middleware

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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