limiter

package
v0.0.0-...-7787783 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 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 {
	A float64
	B float64

	Mid  float64
	Last time.Time
}

func NewLimiter

func NewLimiter(a, b float64) *Limiter

func (*Limiter) Calc

func (l *Limiter) Calc() float64

Jump to

Keyboard shortcuts

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