Documentation ¶
Overview ¶
package repository contains all of the methods needed to interact with the BCDA data
Index ¶
- Variables
- type MockRepository
- func (_m *MockRepository) CreateJobKey(ctx context.Context, jobKey models.JobKey) error
- func (_m *MockRepository) CreateJobKeys(ctx context.Context, jobKeys []models.JobKey) error
- func (_m *MockRepository) GetACOByUUID(ctx context.Context, _a1 uuid.UUID) (*models.ACO, error)
- func (_m *MockRepository) GetCCLFBeneficiaryByID(ctx context.Context, id uint) (*models.CCLFBeneficiary, error)
- func (_m *MockRepository) GetJobByID(ctx context.Context, jobID uint) (*models.Job, error)
- func (_m *MockRepository) GetJobKey(ctx context.Context, jobID uint, queJobID int64) (*models.JobKey, error)
- func (_m *MockRepository) GetJobKeyCount(ctx context.Context, jobID uint) (int, error)
- func (_m *MockRepository) GetUniqueJobKeyCount(ctx context.Context, jobID uint) (int, error)
- func (_m *MockRepository) UpdateJobStatus(ctx context.Context, jobID uint, new models.JobStatus) error
- func (_m *MockRepository) UpdateJobStatusCheckStatus(ctx context.Context, jobID uint, current models.JobStatus, ...) error
- type Repository
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MockRepository ¶
MockRepository is an autogenerated mock type for the Repository type
func NewMockRepository ¶
func NewMockRepository(t interface { mock.TestingT Cleanup(func()) }) *MockRepository
NewMockRepository creates a new instance of MockRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockRepository) CreateJobKey ¶
CreateJobKey provides a mock function with given fields: ctx, jobKey
func (*MockRepository) CreateJobKeys ¶
CreateJobKeys provides a mock function with given fields: ctx, jobKeys
func (*MockRepository) GetACOByUUID ¶
GetACOByUUID provides a mock function with given fields: ctx, _a1
func (*MockRepository) GetCCLFBeneficiaryByID ¶
func (_m *MockRepository) GetCCLFBeneficiaryByID(ctx context.Context, id uint) (*models.CCLFBeneficiary, error)
GetCCLFBeneficiaryByID provides a mock function with given fields: ctx, id
func (*MockRepository) GetJobByID ¶
GetJobByID provides a mock function with given fields: ctx, jobID
func (*MockRepository) GetJobKey ¶
func (_m *MockRepository) GetJobKey(ctx context.Context, jobID uint, queJobID int64) (*models.JobKey, error)
GetJobKey provides a mock function with given fields: ctx, jobID, queJobID
func (*MockRepository) GetJobKeyCount ¶
GetJobKeyCount provides a mock function with given fields: ctx, jobID
func (*MockRepository) GetUniqueJobKeyCount ¶
GetUniqueJobKeyCount provides a mock function with given fields: ctx, jobID
func (*MockRepository) UpdateJobStatus ¶
func (_m *MockRepository) UpdateJobStatus(ctx context.Context, jobID uint, new models.JobStatus) error
UpdateJobStatus provides a mock function with given fields: ctx, jobID, new
type Repository ¶
type Repository interface {
// contains filtered or unexported methods
}