middleware

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 3

README

go-http-middleware

HTTP middleware for Go web servers

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnablePrometheus

func EnablePrometheus()

func EnablePrometheusForMux

func EnablePrometheusForMux(mux *http.ServeMux)

func MakeCachingHandler

func MakeCachingHandler(age time.Duration, h http.Handler) http.Handler

func MakeLoggingHandler

func MakeLoggingHandler(h http.Handler) http.Handler

func MakeNoIndexHandler

func MakeNoIndexHandler(h http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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