limiter

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 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 FlowLimiter

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

func NewFlowLimiter

func NewFlowLimiter(config config.LimiterConfig) *FlowLimiter

func (*FlowLimiter) Allow

func (f *FlowLimiter) Allow() bool

func (*FlowLimiter) GetConfig added in v1.2.4

func (f *FlowLimiter) GetConfig() *config.LimiterConfig

func (*FlowLimiter) UpdateLimiter

func (f *FlowLimiter) UpdateLimiter(config config.LimiterConfig) error

Jump to

Keyboard shortcuts

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