ratelimit

package
v0.0.0-...-1a196e1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConsulStore

func NewConsulStore(c *api.Client) limiter.Store

Types

type ConsulStore

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

func (*ConsulStore) Get

func (s *ConsulStore) Get(key string, rate limiter.Rate) (limiter.Context, error)

func (*ConsulStore) Peek

func (s *ConsulStore) Peek(key string, rate limiter.Rate) (limiter.Context, error)

Jump to

Keyboard shortcuts

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