mock_limiter

package
v0.0.0-...-f1f0b2f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock_limiter is a generated GoMock package.

Package mock_limiter is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDDBClient

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

MockDDBClient is a mock of DDBClient interface.

func NewMockDDBClient

func NewMockDDBClient(ctrl *gomock.Controller) *MockDDBClient

NewMockDDBClient creates a new mock instance.

func (*MockDDBClient) BatchWriteItem

func (m *MockDDBClient) BatchWriteItem(arg0 context.Context, arg1 *dynamodb.BatchWriteItemInput, arg2 ...func(*dynamodb.Options)) (*dynamodb.BatchWriteItemOutput, error)

BatchWriteItem mocks base method.

func (*MockDDBClient) EXPECT

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

func (*MockDDBClient) GetItem

func (m *MockDDBClient) GetItem(arg0 context.Context, arg1 *dynamodb.GetItemInput, arg2 ...func(*dynamodb.Options)) (*dynamodb.GetItemOutput, error)

GetItem mocks base method.

func (*MockDDBClient) UpdateItem

func (m *MockDDBClient) UpdateItem(arg0 context.Context, arg1 *dynamodb.UpdateItemInput, arg2 ...func(*dynamodb.Options)) (*dynamodb.UpdateItemOutput, error)

UpdateItem mocks base method.

type MockDDBClientMockRecorder

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

MockDDBClientMockRecorder is the mock recorder for MockDDBClient.

func (*MockDDBClientMockRecorder) BatchWriteItem

func (mr *MockDDBClientMockRecorder) BatchWriteItem(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

BatchWriteItem indicates an expected call of BatchWriteItem.

func (*MockDDBClientMockRecorder) GetItem

func (mr *MockDDBClientMockRecorder) GetItem(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

GetItem indicates an expected call of GetItem.

func (*MockDDBClientMockRecorder) UpdateItem

func (mr *MockDDBClientMockRecorder) UpdateItem(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

UpdateItem indicates an expected call of UpdateItem.

type MockLimitPreparer

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

MockLimitPreparer is a mock of LimitPreparer interface.

func NewMockLimitPreparer

func NewMockLimitPreparer(ctrl *gomock.Controller) *MockLimitPreparer

NewMockLimitPreparer creates a new mock instance.

func (*MockLimitPreparer) EXPECT

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

func (*MockLimitPreparer) PrepareTokens

func (m *MockLimitPreparer) PrepareTokens(arg0 context.Context, arg1 string) error

PrepareTokens mocks base method.

func (*MockLimitPreparer) ShouldThrottle

func (m *MockLimitPreparer) ShouldThrottle(arg0 context.Context, arg1 string) (bool, error)

ShouldThrottle mocks base method.

type MockLimitPreparerMockRecorder

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

MockLimitPreparerMockRecorder is the mock recorder for MockLimitPreparer.

func (*MockLimitPreparerMockRecorder) PrepareTokens

func (mr *MockLimitPreparerMockRecorder) PrepareTokens(arg0, arg1 interface{}) *gomock.Call

PrepareTokens indicates an expected call of PrepareTokens.

func (*MockLimitPreparerMockRecorder) ShouldThrottle

func (mr *MockLimitPreparerMockRecorder) ShouldThrottle(arg0, arg1 interface{}) *gomock.Call

ShouldThrottle indicates an expected call of ShouldThrottle.

type MockLimiter

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

MockLimiter is a mock of Limiter interface.

func NewMockLimiter

func NewMockLimiter(ctrl *gomock.Controller) *MockLimiter

NewMockLimiter creates a new mock instance.

func (*MockLimiter) EXPECT

func (m *MockLimiter) EXPECT() *MockLimiterMockRecorder

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

func (*MockLimiter) ShouldThrottle

func (m *MockLimiter) ShouldThrottle(arg0 context.Context, arg1 string) (bool, error)

ShouldThrottle mocks base method.

type MockLimiterMockRecorder

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

MockLimiterMockRecorder is the mock recorder for MockLimiter.

func (*MockLimiterMockRecorder) ShouldThrottle

func (mr *MockLimiterMockRecorder) ShouldThrottle(arg0, arg1 interface{}) *gomock.Call

ShouldThrottle indicates an expected call of ShouldThrottle.

type MockPreparer

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

MockPreparer is a mock of Preparer interface.

func NewMockPreparer

func NewMockPreparer(ctrl *gomock.Controller) *MockPreparer

NewMockPreparer creates a new mock instance.

func (*MockPreparer) EXPECT

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

func (*MockPreparer) PrepareTokens

func (m *MockPreparer) PrepareTokens(arg0 context.Context, arg1 string) error

PrepareTokens mocks base method.

type MockPreparerMockRecorder

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

MockPreparerMockRecorder is the mock recorder for MockPreparer.

func (*MockPreparerMockRecorder) PrepareTokens

func (mr *MockPreparerMockRecorder) PrepareTokens(arg0, arg1 interface{}) *gomock.Call

PrepareTokens indicates an expected call of PrepareTokens.

Jump to

Keyboard shortcuts

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