limit

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Limiter

type Limiter interface {
	// To add count to rate limiter.
	// Will block until the rate in below the
	// limit.
	Take()
}

Limiter is rate limiting interface.

See usage example in example folder.

Directories

Path Synopsis
Package atomic is a rate limiter based on "github.com/uber-go/ratelimit" library.
Package atomic is a rate limiter based on "github.com/uber-go/ratelimit" library.
Package mock_limit is a generated GoMock package.
Package mock_limit is a generated GoMock package.
Package mutex is a rate limiter based on "github.com/uber-go/ratelimit" library.
Package mutex is a rate limiter based on "github.com/uber-go/ratelimit" library.
Package nop is a no-operation rate limiter.
Package nop is a no-operation rate limiter.

Jump to

Keyboard shortcuts

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