rate

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Engine engine.Engine
	Period time.Duration
	Limit  uint
}

type Rate

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

func NewRate

func NewRate(opt Options) *Rate

func (*Rate) Allow

func (r *Rate) Allow(key string) bool

Jump to

Keyboard shortcuts

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