ratelimiter

package
v1.0.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReloadableRateLimiter

type ReloadableRateLimiter struct {
	// contains filtered or unexported fields
}

func NewReloadableRateLimiter

func NewReloadableRateLimiter(limiter flowcontrol.RateLimiter) *ReloadableRateLimiter

func (*ReloadableRateLimiter) Accept

func (r *ReloadableRateLimiter) Accept()

func (*ReloadableRateLimiter) QPS

func (r *ReloadableRateLimiter) QPS() float32

func (*ReloadableRateLimiter) Set

func (*ReloadableRateLimiter) Stop

func (r *ReloadableRateLimiter) Stop()

func (*ReloadableRateLimiter) TryAccept

func (r *ReloadableRateLimiter) TryAccept() bool

func (*ReloadableRateLimiter) Wait

Jump to

Keyboard shortcuts

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