middleware

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORS

func CORS(next http.Handler) http.Handler

CORS is an HTTP middleware which specifies related headers.

func IP

func IP(next http.Handler) http.Handler

IP is an HTTP middleware which keeps track of client IP addresses.

func RateLimit

func RateLimit(next http.Handler, rps float64, burst int, ttl time.Duration) http.Handler

RateLimit is an HTTP middleware which limits requests base on client IP addresses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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