common

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRateLimitRequest

func NewRateLimitRequest(domain string, descriptors [][][2]string, hitsAddend uint32) *pb.RateLimitRequest

func NewRateLimitRequestLegacy added in v1.1.0

func NewRateLimitRequestLegacy(domain string, descriptors [][][2]string, hitsAddend uint32) *pb_legacy.RateLimitRequest

Types

type TestStatSink added in v1.4.0

type TestStatSink struct {
	sync.Mutex
	Record map[string]interface{}
}

func (*TestStatSink) Clear added in v1.4.0

func (s *TestStatSink) Clear()

func (*TestStatSink) FlushCounter added in v1.4.0

func (s *TestStatSink) FlushCounter(name string, value uint64)

func (*TestStatSink) FlushGauge added in v1.4.0

func (s *TestStatSink) FlushGauge(name string, value uint64)

func (*TestStatSink) FlushTimer added in v1.4.0

func (s *TestStatSink) FlushTimer(name string, value float64)

Jump to

Keyboard shortcuts

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