repository

package
v0.0.0-...-41bf266 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 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")
)

Functions

This section is empty.

Types

type MockRepository

type MockRepository struct {
	mock.Mock
}

MockRepository is an autogenerated mock type for the Repository type

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) 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) GetJobKeyCount

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

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

func (*MockRepository) IncrementCompletedJobCount

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

IncrementCompletedJobCount 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