repository

package
v0.0.0-...-addf352 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Overview

package repository contains all of the methods needed to interact with the BCDA data

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrJobNotUpdated  = errors.New("job was not updated, no match found")
	ErrJobNotFound    = errors.New("no job found for given id")
	ErrJobKeyNotFound = errors.New("no job key found for given IDs")
)

Functions

This section is empty.

Types

type MockRepository

type MockRepository struct {
	mock.Mock
}

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

func (_m *MockRepository) CreateJobKey(ctx context.Context, jobKey models.JobKey) error

CreateJobKey provides a mock function with given fields: ctx, jobKey

func (*MockRepository) CreateJobKeys

func (_m *MockRepository) CreateJobKeys(ctx context.Context, jobKeys []models.JobKey) error

CreateJobKeys provides a mock function with given fields: ctx, jobKeys

func (*MockRepository) GetACOByUUID

func (_m *MockRepository) GetACOByUUID(ctx context.Context, _a1 uuid.UUID) (*models.ACO, error)

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

func (_m *MockRepository) GetJobByID(ctx context.Context, jobID uint) (*models.Job, error)

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

func (_m *MockRepository) GetJobKeyCount(ctx context.Context, jobID uint) (int, error)

GetJobKeyCount provides a mock function with given fields: ctx, jobID

func (*MockRepository) GetUniqueJobKeyCount

func (_m *MockRepository) GetUniqueJobKeyCount(ctx context.Context, jobID uint) (int, error)

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

func (*MockRepository) UpdateJobStatusCheckStatus

func (_m *MockRepository) UpdateJobStatusCheckStatus(ctx context.Context, jobID uint, current models.JobStatus, new models.JobStatus) error

UpdateJobStatusCheckStatus provides a mock function with given fields: ctx, jobID, current, new

type Repository

type Repository interface {
	// contains filtered or unexported methods
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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