ratelimit

package
Version: v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientWrapper

func NewClientWrapper(b *ratelimit.Bucket, wait bool) client.Wrapper

NewClientWrapper takes a rate limiter and wait flag and returns a client Wrapper.

func NewHandlerWrapper

func NewHandlerWrapper(b *ratelimit.Bucket, wait bool) server.HandlerWrapper

NewHandlerWrapper takes a rate limiter and wait flag and returns a client Wrapper.

Types

This section is empty.

Source Files

Directories

Path Synopsis
module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL