limiter

package
v0.0.0-...-36c403e Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: MIT Imports: 1 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 struct {
	// contains filtered or unexported fields
}

func (*Limiter) Allow

func (l *Limiter) Allow() bool

func (*Limiter) Reset

func (l *Limiter) Reset(t time.Time)

func (*Limiter) Set

func (l *Limiter) Set(r int, cycle time.Duration)

Jump to

Keyboard shortcuts

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