middleware

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Health

func Health(endpoint string) func(http.Handler) http.Handler

Health endpoint middleware useful to setting up a path like `/ping` that load balancers or uptime testing external services can make a request before hitting any routes. It's also convenient to place this above ACL middlewares as well.

func Logger

func Logger(next http.Handler) http.Handler

Logger returns the logging middleware

func Recovery

func Recovery(next http.Handler) http.Handler

Recovery returns the Recovery middleware

func RobotsTxt

func RobotsTxt(robotsTxt string) func(http.Handler) http.Handler

RobotsTxt outputs the default robots.txt file

Types

This section is empty.

Jump to

Keyboard shortcuts

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