reqlim

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 3 Imported by: 0

README

koron-go/reqlim

GoDoc Actions/Go Go Report Card

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(h http.Handler, limit int, msg string) http.Handler

Handler returns a http.Handler that runs h with the given concurrency limit.

Types

type Reqlim

type Reqlim struct {
	// contains filtered or unexported fields
}

Reqlim limits number of request in parallel processing.

func (*Reqlim) ServeHTTP

func (rl *Reqlim) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler

Jump to

Keyboard shortcuts

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