bucket

package
v0.0.0-...-74fc604 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(maxTokens, regenPerSecond int) limiter.Limiter

Types

type Bucket

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

func (*Bucket) TryTake

func (b *Bucket) TryTake(_ []byte) (bool, int)

Jump to

Keyboard shortcuts

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