Documentation ¶
Overview ¶
Package repository is a generated GoMock package.
Index ¶
- func Seeding(memcachedRepository CurrencyRepository, databaseRepository CurrencyRepository, ...) error
- type CurrencyRepository
- type MockCurrencyRepository
- func (m *MockCurrencyRepository) BulkUpsert(ctx context.Context, currencies []*model.CurrencyRepositoryModel) ([]*model.CurrencyRepositoryModel, error)
- func (m *MockCurrencyRepository) EXPECT() *MockCurrencyRepositoryMockRecorder
- func (m *MockCurrencyRepository) FindAll(ctx context.Context) ([]*model.CurrencyRepositoryModel, error)
- func (m *MockCurrencyRepository) FindByCode(ctx context.Context, currencyCode string) (*model.CurrencyRepositoryModel, error)
- func (m *MockCurrencyRepository) FindByID(ctx context.Context, ID uuid.UUID) (*model.CurrencyRepositoryModel, error)
- func (m *MockCurrencyRepository) Insert(ctx context.Context, currency *model.CurrencyRepositoryModel) (*model.CurrencyRepositoryModel, error)
- type MockCurrencyRepositoryMockRecorder
- func (mr *MockCurrencyRepositoryMockRecorder) BulkUpsert(ctx, currencies interface{}) *gomock.Call
- func (mr *MockCurrencyRepositoryMockRecorder) FindAll(ctx interface{}) *gomock.Call
- func (mr *MockCurrencyRepositoryMockRecorder) FindByCode(ctx, currencyCode interface{}) *gomock.Call
- func (mr *MockCurrencyRepositoryMockRecorder) FindByID(ctx, ID interface{}) *gomock.Call
- func (mr *MockCurrencyRepositoryMockRecorder) Insert(ctx, currency interface{}) *gomock.Call
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 ¶
func (m *MockCurrencyRepository) BulkUpsert(ctx context.Context, currencies []*model.CurrencyRepositoryModel) ([]*model.CurrencyRepositoryModel, error)
BulkUpsert mocks base method.
func (*MockCurrencyRepository) EXPECT ¶
func (m *MockCurrencyRepository) EXPECT() *MockCurrencyRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCurrencyRepository) FindAll ¶
func (m *MockCurrencyRepository) FindAll(ctx context.Context) ([]*model.CurrencyRepositoryModel, error)
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 ¶
func (m *MockCurrencyRepository) FindByID(ctx context.Context, ID uuid.UUID) (*model.CurrencyRepositoryModel, error)
FindByID mocks base method.
func (*MockCurrencyRepository) Insert ¶
func (m *MockCurrencyRepository) Insert(ctx context.Context, currency *model.CurrencyRepositoryModel) (*model.CurrencyRepositoryModel, error)
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.