middleware

package
v0.0.0-...-7ffd1ea Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Throttle

func Throttle(maxConcurrent int, timeout time.Duration) usrv.EndpointOption

Apply a throttling middleware to the input handler that throttles request handling to maxConcurrent requests.

If a non-zero timeout is specified and a pending request cannot be serviced within the specified timeout, it will be aborted with ErrTimeout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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