request

package
v0.0.33-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllMiddlewares

func GetAllMiddlewares() []func(http.Handler) http.Handler

GetAllMiddlewares returns a list of middlewares (respecting order) in cases where the order was explicit. When there was no explicit order given, e.g. different Register functions, order is undetermined TODO: provide dependency management and expose something depgraph-like here because this will eventually be needed for sure

func Register

func Register(name string, fns ...func(http.Handler) http.Handler)

Register takes a name and a list of function handlers and registers them as middleware functions that can be applied to the router or whatever system that's being used for routing Since these functions are registered ad-hoc, if there's a strict dependency between functions, they should be passed in with one Register function

Types

This section is empty.

Jump to

Keyboard shortcuts

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