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.
Click to show internal directories.
Click to hide internal directories.