limiter

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 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 Impl

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

func NewStringLimiter

func NewStringLimiter() *Impl

func (*Impl) Add

func (i *Impl) Add(s string) *rate.Limiter

func (*Impl) Get

func (i *Impl) Get(s string) *rate.Limiter

type StringLimiter

type StringLimiter interface {
	Add(string) *rate.Limiter
	Get(string) *rate.Limiter
}

Jump to

Keyboard shortcuts

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