ratelimiter

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RateLimiterIFace

type RateLimiterIFace interface {
	// Take is called by each method needing rate limit applied
	//
	// based on rate limit per second setting,
	// given amount of time is slept before process continues
	//
	// for example, 1 second rate limit 100 = 100 milliseconds per call,
	// this causes each call to Take sleep for 100 milliseconds before continuing
	//
	// returns time when Take took place
	Take() time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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