etbf

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MYTBF_MAX int64 = 1024
)

Variables

View Source
var (
	Mutex = sync.Mutex{}
)

Functions

This section is empty.

Types

type TBF

type TBF interface {
	Fetchtoken(int64) (int64, error)
	Returntoken(int64) (int64, error)
	Destory() error
}

func Newtbf

func Newtbf(fillInterval time.Duration, cps, burst int64) TBF

Jump to

Keyboard shortcuts

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