throttler

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package throttler provides functionality to throttle http requests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Throttler

type Throttler interface {
	Throttle(key string) bool
	Reset(key string)
}

Throttler ...

func New

func New(period time.Duration) Throttler

New returns a new instance of Throttler.

Jump to

Keyboard shortcuts

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