common

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContextFromState

func GetContextFromState(now time.Time, rate limiter.Rate, expiration time.Time, count int64) limiter.Context

GetContextFromState generate a new limiter.Context from given state.

func TestStoreConcurrentAccess

func TestStoreConcurrentAccess(t *testing.T, store limiter.Store)

TestStoreConcurrentAccess verify that store works as expected with a concurrent access.

func TestStoreSequentialAccess

func TestStoreSequentialAccess(t *testing.T, store limiter.Store)

TestStoreSequentialAccess verify that store works as expected with a sequential access.

Types

This section is empty.

Jump to

Keyboard shortcuts

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