ratelimiter

package
v0.24.5 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MPL-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 Ratelimiter

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

func (*Ratelimiter) Allow

func (rate *Ratelimiter) Allow(ip netip.Addr) bool

func (*Ratelimiter) Close

func (rate *Ratelimiter) Close() error

func (*Ratelimiter) Init

func (rate *Ratelimiter) Init()

type RatelimiterEntry

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

Jump to

Keyboard shortcuts

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