ratelimit

package module
v0.0.0-...-7dcbd07 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: NCSA Imports: 12 Imported by: 1

README

rai-project/docker Build Status

Config

app:
  - rate_limit: 30s

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Config = &ratelimitConfig{
		done: make(chan struct{}),
	}
)

Functions

func New

func New(opts ...RateLimitOption) error

Types

type RateLimitOption

type RateLimitOption func(*RateLimitOptions)

func Limit

func Limit(t time.Duration) RateLimitOption

type RateLimitOptions

type RateLimitOptions struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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