limiter

package
v0.11.2 Latest Latest
Warning

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

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

Documentation

Overview

Package limiter is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConcurrencyLimiter added in v0.4.3

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

MockConcurrencyLimiter is a mock of ConcurrencyLimiter interface.

func NewMockConcurrencyLimiter added in v0.4.3

func NewMockConcurrencyLimiter(ctrl *gomock.Controller) *MockConcurrencyLimiter

NewMockConcurrencyLimiter creates a new mock instance.

func (*MockConcurrencyLimiter) Acquire added in v0.4.3

func (m *MockConcurrencyLimiter) Acquire(ctx context.Context) bool

Acquire mocks base method.

func (*MockConcurrencyLimiter) EXPECT added in v0.4.3

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConcurrencyLimiter) Release added in v0.4.3

func (m *MockConcurrencyLimiter) Release(ctx context.Context)

Release mocks base method.

func (*MockConcurrencyLimiter) Status added in v0.4.3

func (m *MockConcurrencyLimiter) Status(ctx context.Context) (int, int)

Status mocks base method.

type MockConcurrencyLimiterMockRecorder added in v0.4.3

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

MockConcurrencyLimiterMockRecorder is the mock recorder for MockConcurrencyLimiter.

func (*MockConcurrencyLimiterMockRecorder) Acquire added in v0.4.3

func (mr *MockConcurrencyLimiterMockRecorder) Acquire(ctx interface{}) *gomock.Call

Acquire indicates an expected call of Acquire.

func (*MockConcurrencyLimiterMockRecorder) Release added in v0.4.3

func (mr *MockConcurrencyLimiterMockRecorder) Release(ctx interface{}) *gomock.Call

Release indicates an expected call of Release.

func (*MockConcurrencyLimiterMockRecorder) Status added in v0.4.3

func (mr *MockConcurrencyLimiterMockRecorder) Status(ctx interface{}) *gomock.Call

Status indicates an expected call of Status.

type MockLimitReporter added in v0.4.3

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

MockLimitReporter is a mock of LimitReporter interface.

func NewMockLimitReporter added in v0.4.3

func NewMockLimitReporter(ctrl *gomock.Controller) *MockLimitReporter

NewMockLimitReporter creates a new mock instance.

func (*MockLimitReporter) ConnOverloadReport added in v0.4.3

func (m *MockLimitReporter) ConnOverloadReport()

ConnOverloadReport mocks base method.

func (*MockLimitReporter) EXPECT added in v0.4.3

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLimitReporter) QPSOverloadReport added in v0.4.3

func (m *MockLimitReporter) QPSOverloadReport()

QPSOverloadReport mocks base method.

type MockLimitReporterMockRecorder added in v0.4.3

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

MockLimitReporterMockRecorder is the mock recorder for MockLimitReporter.

func (*MockLimitReporterMockRecorder) ConnOverloadReport added in v0.4.3

func (mr *MockLimitReporterMockRecorder) ConnOverloadReport() *gomock.Call

ConnOverloadReport indicates an expected call of ConnOverloadReport.

func (*MockLimitReporterMockRecorder) QPSOverloadReport added in v0.4.3

func (mr *MockLimitReporterMockRecorder) QPSOverloadReport() *gomock.Call

QPSOverloadReport indicates an expected call of QPSOverloadReport.

type MockRateLimiter added in v0.4.3

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

MockRateLimiter is a mock of RateLimiter interface.

func NewMockRateLimiter added in v0.4.3

func NewMockRateLimiter(ctrl *gomock.Controller) *MockRateLimiter

NewMockRateLimiter creates a new mock instance.

func (*MockRateLimiter) Acquire added in v0.4.3

func (m *MockRateLimiter) Acquire(ctx context.Context) bool

Acquire mocks base method.

func (*MockRateLimiter) EXPECT added in v0.4.3

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRateLimiter) Status added in v0.4.3

func (m *MockRateLimiter) Status(ctx context.Context) (int, int, time.Duration)

Status mocks base method.

type MockRateLimiterMockRecorder added in v0.4.3

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

MockRateLimiterMockRecorder is the mock recorder for MockRateLimiter.

func (*MockRateLimiterMockRecorder) Acquire added in v0.4.3

func (mr *MockRateLimiterMockRecorder) Acquire(ctx interface{}) *gomock.Call

Acquire indicates an expected call of Acquire.

func (*MockRateLimiterMockRecorder) Status added in v0.4.3

func (mr *MockRateLimiterMockRecorder) Status(ctx interface{}) *gomock.Call

Status indicates an expected call of Status.

type MockUpdatable added in v0.4.3

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

MockUpdatable is a mock of Updatable interface.

func NewMockUpdatable added in v0.4.3

func NewMockUpdatable(ctrl *gomock.Controller) *MockUpdatable

NewMockUpdatable creates a new mock instance.

func (*MockUpdatable) EXPECT added in v0.4.3

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUpdatable) UpdateLimit added in v0.4.3

func (m *MockUpdatable) UpdateLimit(limit int)

UpdateLimit mocks base method.

type MockUpdatableMockRecorder added in v0.4.3

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

MockUpdatableMockRecorder is the mock recorder for MockUpdatable.

func (*MockUpdatableMockRecorder) UpdateLimit added in v0.4.3

func (mr *MockUpdatableMockRecorder) UpdateLimit(limit interface{}) *gomock.Call

UpdateLimit indicates an expected call of UpdateLimit.

Jump to

Keyboard shortcuts

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