Documentation ¶
Index ¶
- type Repository
- func (r *Repository) CreateJobKey(ctx context.Context, jobKey models.JobKey) error
- func (r *Repository) CreateJobKeys(ctx context.Context, jobKeys []models.JobKey) error
- func (r *Repository) GetACOByUUID(ctx context.Context, uuid uuid.UUID) (*models.ACO, error)
- func (r *Repository) GetCCLFBeneficiaryByID(ctx context.Context, id uint) (*models.CCLFBeneficiary, error)
- func (r *Repository) GetJobByID(ctx context.Context, jobID uint) (*models.Job, error)
- func (r *Repository) GetJobKey(ctx context.Context, jobID uint, queJobID int64) (*models.JobKey, error)
- func (r *Repository) GetJobKeyCount(ctx context.Context, jobID uint) (int, error)
- func (r *Repository) GetUniqueJobKeyCount(ctx context.Context, jobID uint) (int, error)
- func (r *Repository) IncrementCompletedJobCount(ctx context.Context, jobID uint) error
- func (r *Repository) UpdateJobStatus(ctx context.Context, jobID uint, new models.JobStatus) error
- func (r *Repository) UpdateJobStatusCheckStatus(ctx context.Context, jobID uint, current, new models.JobStatus) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *sql.DB) *Repository
func NewRepositoryTx ¶
func NewRepositoryTx(tx *sql.Tx) *Repository
func (*Repository) CreateJobKey ¶
func (*Repository) CreateJobKeys ¶
func (*Repository) GetACOByUUID ¶
func (*Repository) GetCCLFBeneficiaryByID ¶
func (r *Repository) GetCCLFBeneficiaryByID(ctx context.Context, id uint) (*models.CCLFBeneficiary, error)
func (*Repository) GetJobByID ¶
func (*Repository) GetJobKeyCount ¶
func (*Repository) GetUniqueJobKeyCount ¶
func (*Repository) IncrementCompletedJobCount ¶
func (r *Repository) IncrementCompletedJobCount(ctx context.Context, jobID uint) error
func (*Repository) UpdateJobStatus ¶
func (*Repository) UpdateJobStatusCheckStatus ¶
Click to show internal directories.
Click to hide internal directories.