repository

package
v0.0.0-...-47d9ccc Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package repository is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Seeding

func Seeding(
	memcachedRepository CurrencyRepository,
	databaseRepository CurrencyRepository,
	filepath string,
) error

Types

type CurrencyRepository

type CurrencyRepository interface {
	FindAll(ctx context.Context) ([]*model.CurrencyRepositoryModel, error)
	FindByCode(ctx context.Context, currencyCode string) (*model.CurrencyRepositoryModel, error)
	FindByID(ctx context.Context, ID uuid.UUID) (*model.CurrencyRepositoryModel, error)
	Insert(ctx context.Context, currency *model.CurrencyRepositoryModel) (*model.CurrencyRepositoryModel, error)
	BulkUpsert(ctx context.Context, currencies []*model.CurrencyRepositoryModel) ([]*model.CurrencyRepositoryModel, error)
}

type MockCurrencyRepository

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

MockCurrencyRepository is a mock of CurrencyRepository interface.

func NewMockCurrencyRepository

func NewMockCurrencyRepository(ctrl *gomock.Controller) *MockCurrencyRepository

NewMockCurrencyRepository creates a new mock instance.

func (*MockCurrencyRepository) BulkUpsert

BulkUpsert mocks base method.

func (*MockCurrencyRepository) EXPECT

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

func (*MockCurrencyRepository) FindAll

FindAll mocks base method.

func (*MockCurrencyRepository) FindByCode

func (m *MockCurrencyRepository) FindByCode(ctx context.Context, currencyCode string) (*model.CurrencyRepositoryModel, error)

FindByCode mocks base method.

func (*MockCurrencyRepository) FindByID

FindByID mocks base method.

func (*MockCurrencyRepository) Insert

Insert mocks base method.

type MockCurrencyRepositoryMockRecorder

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

MockCurrencyRepositoryMockRecorder is the mock recorder for MockCurrencyRepository.

func (*MockCurrencyRepositoryMockRecorder) BulkUpsert

func (mr *MockCurrencyRepositoryMockRecorder) BulkUpsert(ctx, currencies interface{}) *gomock.Call

BulkUpsert indicates an expected call of BulkUpsert.

func (*MockCurrencyRepositoryMockRecorder) FindAll

func (mr *MockCurrencyRepositoryMockRecorder) FindAll(ctx interface{}) *gomock.Call

FindAll indicates an expected call of FindAll.

func (*MockCurrencyRepositoryMockRecorder) FindByCode

func (mr *MockCurrencyRepositoryMockRecorder) FindByCode(ctx, currencyCode interface{}) *gomock.Call

FindByCode indicates an expected call of FindByCode.

func (*MockCurrencyRepositoryMockRecorder) FindByID

func (mr *MockCurrencyRepositoryMockRecorder) FindByID(ctx, ID interface{}) *gomock.Call

FindByID indicates an expected call of FindByID.

func (*MockCurrencyRepositoryMockRecorder) Insert

func (mr *MockCurrencyRepositoryMockRecorder) Insert(ctx, currency interface{}) *gomock.Call

Insert indicates an expected call of Insert.

Directories

Path Synopsis
memcached
sql

Jump to

Keyboard shortcuts

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