mock

package
v0.0.0-...-dbb83f0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: repository.go

Generated by this command:

mockgen -source repository.go -destination mock/repository_mock.go -package mock

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAPIKeyRepository

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

MockAPIKeyRepository is a mock of APIKeyRepository interface.

func NewMockAPIKeyRepository

func NewMockAPIKeyRepository(ctrl *gomock.Controller) *MockAPIKeyRepository

NewMockAPIKeyRepository creates a new mock instance.

func (*MockAPIKeyRepository) EXPECT

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

func (*MockAPIKeyRepository) Get

func (m *MockAPIKeyRepository) Get(ctx context.Context, value string) (*entity.APIKey, error)

Get mocks base method.

func (*MockAPIKeyRepository) GetBlockedDuration

func (m *MockAPIKeyRepository) GetBlockedDuration(ctx context.Context, key string) (string, error)

GetBlockedDuration mocks base method.

func (*MockAPIKeyRepository) GetRequest

func (m *MockAPIKeyRepository) GetRequest(ctx context.Context, key string) (*entity.RateLimiter, error)

GetRequest mocks base method.

func (*MockAPIKeyRepository) Save

Save mocks base method.

func (*MockAPIKeyRepository) SaveBlockedDuration

func (m *MockAPIKeyRepository) SaveBlockedDuration(ctx context.Context, key string, BlockedDuration int64) error

SaveBlockedDuration mocks base method.

func (*MockAPIKeyRepository) UpsertRequest

func (m *MockAPIKeyRepository) UpsertRequest(ctx context.Context, key string, rl *entity.RateLimiter) error

UpsertRequest mocks base method.

type MockAPIKeyRepositoryMockRecorder

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

MockAPIKeyRepositoryMockRecorder is the mock recorder for MockAPIKeyRepository.

func (*MockAPIKeyRepositoryMockRecorder) Get

func (mr *MockAPIKeyRepositoryMockRecorder) Get(ctx, value any) *gomock.Call

Get indicates an expected call of Get.

func (*MockAPIKeyRepositoryMockRecorder) GetBlockedDuration

func (mr *MockAPIKeyRepositoryMockRecorder) GetBlockedDuration(ctx, key any) *gomock.Call

GetBlockedDuration indicates an expected call of GetBlockedDuration.

func (*MockAPIKeyRepositoryMockRecorder) GetRequest

func (mr *MockAPIKeyRepositoryMockRecorder) GetRequest(ctx, key any) *gomock.Call

GetRequest indicates an expected call of GetRequest.

func (*MockAPIKeyRepositoryMockRecorder) Save

func (mr *MockAPIKeyRepositoryMockRecorder) Save(ctx, key any) *gomock.Call

Save indicates an expected call of Save.

func (*MockAPIKeyRepositoryMockRecorder) SaveBlockedDuration

func (mr *MockAPIKeyRepositoryMockRecorder) SaveBlockedDuration(ctx, key, BlockedDuration any) *gomock.Call

SaveBlockedDuration indicates an expected call of SaveBlockedDuration.

func (*MockAPIKeyRepositoryMockRecorder) UpsertRequest

func (mr *MockAPIKeyRepositoryMockRecorder) UpsertRequest(ctx, key, rl any) *gomock.Call

UpsertRequest indicates an expected call of UpsertRequest.

type MockIPRepository

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

MockIPRepository is a mock of IPRepository interface.

func NewMockIPRepository

func NewMockIPRepository(ctrl *gomock.Controller) *MockIPRepository

NewMockIPRepository creates a new mock instance.

func (*MockIPRepository) EXPECT

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

func (*MockIPRepository) GetBlockedDuration

func (m *MockIPRepository) GetBlockedDuration(ctx context.Context, key string) (string, error)

GetBlockedDuration mocks base method.

func (*MockIPRepository) GetRequest

func (m *MockIPRepository) GetRequest(ctx context.Context, key string) (*entity.RateLimiter, error)

GetRequest mocks base method.

func (*MockIPRepository) SaveBlockedDuration

func (m *MockIPRepository) SaveBlockedDuration(ctx context.Context, key string, BlockedDuration int64) error

SaveBlockedDuration mocks base method.

func (*MockIPRepository) UpsertRequest

func (m *MockIPRepository) UpsertRequest(ctx context.Context, key string, rl *entity.RateLimiter) error

UpsertRequest mocks base method.

type MockIPRepositoryMockRecorder

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

MockIPRepositoryMockRecorder is the mock recorder for MockIPRepository.

func (*MockIPRepositoryMockRecorder) GetBlockedDuration

func (mr *MockIPRepositoryMockRecorder) GetBlockedDuration(ctx, key any) *gomock.Call

GetBlockedDuration indicates an expected call of GetBlockedDuration.

func (*MockIPRepositoryMockRecorder) GetRequest

func (mr *MockIPRepositoryMockRecorder) GetRequest(ctx, key any) *gomock.Call

GetRequest indicates an expected call of GetRequest.

func (*MockIPRepositoryMockRecorder) SaveBlockedDuration

func (mr *MockIPRepositoryMockRecorder) SaveBlockedDuration(ctx, key, BlockedDuration any) *gomock.Call

SaveBlockedDuration indicates an expected call of SaveBlockedDuration.

func (*MockIPRepositoryMockRecorder) UpsertRequest

func (mr *MockIPRepositoryMockRecorder) UpsertRequest(ctx, key, rl any) *gomock.Call

UpsertRequest indicates an expected call of UpsertRequest.

type MockcommonRepo

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

MockcommonRepo is a mock of commonRepo interface.

func NewMockcommonRepo

func NewMockcommonRepo(ctrl *gomock.Controller) *MockcommonRepo

NewMockcommonRepo creates a new mock instance.

func (*MockcommonRepo) EXPECT

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

func (*MockcommonRepo) GetBlockedDuration

func (m *MockcommonRepo) GetBlockedDuration(ctx context.Context, key string) (string, error)

GetBlockedDuration mocks base method.

func (*MockcommonRepo) GetRequest

func (m *MockcommonRepo) GetRequest(ctx context.Context, key string) (*entity.RateLimiter, error)

GetRequest mocks base method.

func (*MockcommonRepo) SaveBlockedDuration

func (m *MockcommonRepo) SaveBlockedDuration(ctx context.Context, key string, BlockedDuration int64) error

SaveBlockedDuration mocks base method.

func (*MockcommonRepo) UpsertRequest

func (m *MockcommonRepo) UpsertRequest(ctx context.Context, key string, rl *entity.RateLimiter) error

UpsertRequest mocks base method.

type MockcommonRepoMockRecorder

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

MockcommonRepoMockRecorder is the mock recorder for MockcommonRepo.

func (*MockcommonRepoMockRecorder) GetBlockedDuration

func (mr *MockcommonRepoMockRecorder) GetBlockedDuration(ctx, key any) *gomock.Call

GetBlockedDuration indicates an expected call of GetBlockedDuration.

func (*MockcommonRepoMockRecorder) GetRequest

func (mr *MockcommonRepoMockRecorder) GetRequest(ctx, key any) *gomock.Call

GetRequest indicates an expected call of GetRequest.

func (*MockcommonRepoMockRecorder) SaveBlockedDuration

func (mr *MockcommonRepoMockRecorder) SaveBlockedDuration(ctx, key, BlockedDuration any) *gomock.Call

SaveBlockedDuration indicates an expected call of SaveBlockedDuration.

func (*MockcommonRepoMockRecorder) UpsertRequest

func (mr *MockcommonRepoMockRecorder) UpsertRequest(ctx, key, rl any) *gomock.Call

UpsertRequest indicates an expected call of UpsertRequest.

Jump to

Keyboard shortcuts

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