ratelimit

package
v1.2.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCERateLimiter

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

GCERateLimiter implements cloud.RateLimiter

func NewGCERateLimiter

func NewGCERateLimiter(specs []string) (*GCERateLimiter, error)

NewGCERateLimiter parses the list of rate limiting specs passed in and returns a properly configured cloud.RateLimiter implementation. Expected format of specs: {"[version].[service].[operation],[type],[param1],[param2],..", "..."}

func (*GCERateLimiter) Accept

func (l *GCERateLimiter) Accept(ctx context.Context, key *cloud.RateLimitKey) error

Implementation of cloud.RateLimiter

Jump to

Keyboard shortcuts

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