middleware

package
v0.0.0-...-8f77053 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const LoggerKey = "logger"

Variables

This section is empty.

Functions

func ChiURLParams

func ChiURLParams() func(next rf.HandlerFunc) rf.HandlerFunc

ChiURLParams merges URL params (/books/{id}) into the *http.Request params map for later use. NOTE: this overrides any other GET paramaters with the same key

func Logger

func Logger(logger *logrus.Logger) rf.MiddlewareFunc

func RPCRequestOnly

func RPCRequestOnly() func(next rf.HandlerFunc) rf.HandlerFunc

RPCRequestOnly limits all requests to conform to our RPC request standard

Types

This section is empty.

Jump to

Keyboard shortcuts

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