ratelimiter

package
v0.0.0-...-9154c2c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServices

func GetServices() []string

func Register

func Register(name string, factory FactoryFunc)

func RegisterServices

func RegisterServices(newNames []string)

Types

type FactoryFunc

type FactoryFunc func(config string) (RateLimiter, error)

type RateLimiter

type RateLimiter interface {
	Gate(id string, method string) (allow bool)
}

func New

func New(config string) (RateLimiter, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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