middleware

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compose

func Compose(funcs ...func(f Func) Func) func(f Func) Func

Compose Funcs

Types

type Func

type Func func(endpoint abstraction.Endpoint, loggerFactory log.Factory) func(http.Handler) http.Handler

Func is a signature that each middleware must implement

type Option

type Option func(*Options)

func EndMiddlewareObserver

func EndMiddlewareObserver(f func(r *http.Request)) Option

func StartMiddlewareObserver

func StartMiddlewareObserver(f func(r *http.Request)) Option

type Options

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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