ratelimit

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRateLimit

func NewRateLimit(conf *viper.Viper) (RateType.RateLimiter, error)

Types

type RateLimit

type RateLimit struct {
	autoload.AutoLoad
	// contains filtered or unexported fields
}

func (*RateLimit) Burst

func (r *RateLimit) Burst() int

func (*RateLimit) Limit

func (r *RateLimit) Limit() float64

func (*RateLimit) LoadRateLimit

func (r *RateLimit) LoadRateLimit() error

func (*RateLimit) WaitToken

func (r *RateLimit) WaitToken() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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