ratelimiter

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT 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()

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