middleware

package
v0.0.0-...-f2c6537 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

View Source
const (
	RATE               = 3
	BURST_SIZE         = 50
	VISITOR_EXPIRATION = time.Minute * 3
)

Variables

This section is empty.

Functions

func Logger

func Logger(next http.Handler) http.Handler

Logger logs the incoming HTTP request and its duration.

func RequestLimiter

func RequestLimiter(next http.Handler) http.Handler

func Tracing

func Tracing(t *zipkin.Tracer) mux.MiddlewareFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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