limiter

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrencyLimiter

type ConcurrencyLimiter struct {
	mock.Mock
}

ConcurrencyLimiter is an autogenerated mock type for the ConcurrencyLimiter type

func (*ConcurrencyLimiter) Acquire

func (_m *ConcurrencyLimiter) Acquire() bool

Acquire provides a mock function with given fields:

func (*ConcurrencyLimiter) Release

func (_m *ConcurrencyLimiter) Release()

Release provides a mock function with given fields:

func (*ConcurrencyLimiter) Status

func (_m *ConcurrencyLimiter) Status() (int, int)

Status provides a mock function with given fields:

type LimitReporter

type LimitReporter struct {
	mock.Mock
}

LimitReporter is an autogenerated mock type for the LimitReporter type

func (*LimitReporter) ConnOverloadReport

func (_m *LimitReporter) ConnOverloadReport()

ConnOverloadReport provides a mock function with given fields:

func (*LimitReporter) QPSOverloadReport

func (_m *LimitReporter) QPSOverloadReport()

QPSOverloadReport provides a mock function with given fields:

type RateLimiter

type RateLimiter struct {
	mock.Mock
}

RateLimiter is an autogenerated mock type for the RateLimiter type

func (*RateLimiter) Acquire

func (_m *RateLimiter) Acquire() bool

Acquire provides a mock function with given fields:

func (*RateLimiter) Status

func (_m *RateLimiter) Status() (int, int, time.Duration)

Status provides a mock function with given fields:

Jump to

Keyboard shortcuts

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