Documentation
¶
Index ¶
- type AlrRepository
- type Repository
- func (r *Repository) CreateACO(ctx context.Context, aco models.ACO) error
- func (r *Repository) CreateCCLFFile(ctx context.Context, cclfFile models.CCLFFile) (uint, error)
- func (r *Repository) CreateJob(ctx context.Context, j models.Job) (uint, error)
- func (r *Repository) CreateSuppression(ctx context.Context, suppression optout.OptOutRecord) error
- func (r *Repository) CreateSuppressionFile(ctx context.Context, suppressionFile optout.OptOutFile) (uint, error)
- func (r *Repository) GetACOByCMSID(ctx context.Context, cmsID string) (*models.ACO, error)
- func (r *Repository) GetACOByClientID(ctx context.Context, clientID string) (*models.ACO, error)
- func (r *Repository) GetACOByUUID(ctx context.Context, uuid uuid.UUID) (*models.ACO, error)
- func (r *Repository) GetAlrMBIs(ctx context.Context, cmsID string) (*models.AlrMBIs, error)
- func (r *Repository) GetCCLFBeneficiaries(ctx context.Context, cclfFileID uint, ignoredMBIs []string) ([]*models.CCLFBeneficiary, error)
- func (r *Repository) GetCCLFBeneficiaryMBIs(ctx context.Context, cclfFileID uint) ([]string, error)
- func (r *Repository) GetCCLFFileExistsByName(ctx context.Context, name string) (bool, error)
- func (r *Repository) GetJobByID(ctx context.Context, jobID uint) (*models.Job, error)
- func (r *Repository) GetJobKey(ctx context.Context, jobID uint, fileName string) (*models.JobKey, error)
- func (r *Repository) GetJobKeys(ctx context.Context, jobID uint) ([]*models.JobKey, error)
- func (r *Repository) GetJobs(ctx context.Context, acoID uuid.UUID, statuses ...models.JobStatus) ([]*models.Job, error)
- func (r *Repository) GetJobsByUpdateTimeAndStatus(ctx context.Context, lowerBound, upperBound time.Time, ...) ([]*models.Job, error)
- func (r *Repository) GetLatestCCLFFile(ctx context.Context, cmsID string, cclfNum int, importStatus string, ...) (*models.CCLFFile, error)
- func (r *Repository) GetSuppressedMBIs(ctx context.Context, lookbackDays int, upperBound time.Time) ([]string, error)
- func (r *Repository) UpdateACO(ctx context.Context, acoUUID uuid.UUID, fieldsAndValues map[string]interface{}) error
- func (r *Repository) UpdateCCLFFileImportStatus(ctx context.Context, fileID uint, importStatus string) error
- func (r *Repository) UpdateJob(ctx context.Context, j models.Job) error
- func (r *Repository) UpdateSuppressionFileImportStatus(ctx context.Context, fileID uint, importStatus string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlrRepository ¶
func NewAlrRepo ¶
func NewAlrRepo(db *sql.DB) *AlrRepository
type Repository ¶
type Repository struct { database.Queryable database.Executable }
func NewRepository ¶
func NewRepository(db *sql.DB) *Repository
func NewRepositoryPgxTx ¶
func NewRepositoryPgxTx(tx *pgx.Tx) *Repository
func NewRepositoryTx ¶
func NewRepositoryTx(tx *sql.Tx) *Repository
func (*Repository) CreateCCLFFile ¶
func (*Repository) CreateSuppression ¶
func (r *Repository) CreateSuppression(ctx context.Context, suppression optout.OptOutRecord) error
func (*Repository) CreateSuppressionFile ¶
func (r *Repository) CreateSuppressionFile(ctx context.Context, suppressionFile optout.OptOutFile) (uint, error)
func (*Repository) GetACOByCMSID ¶
func (*Repository) GetACOByClientID ¶
func (*Repository) GetACOByUUID ¶
func (*Repository) GetAlrMBIs ¶
GetAlrMBIs takes cms_id and returns all the MBIs associated with the ACO's quarterly ALR
func (*Repository) GetCCLFBeneficiaries ¶
func (r *Repository) GetCCLFBeneficiaries(ctx context.Context, cclfFileID uint, ignoredMBIs []string) ([]*models.CCLFBeneficiary, error)
func (*Repository) GetCCLFBeneficiaryMBIs ¶
func (*Repository) GetCCLFFileExistsByName ¶
func (*Repository) GetJobByID ¶
func (*Repository) GetJobKeys ¶
func (*Repository) GetJobsByUpdateTimeAndStatus ¶
func (*Repository) GetLatestCCLFFile ¶
func (*Repository) GetSuppressedMBIs ¶
func (*Repository) UpdateCCLFFileImportStatus ¶
func (*Repository) UpdateSuppressionFileImportStatus ¶
Directories
¶
Path | Synopsis |
---|---|
Package postgrestest provides CRUD utilities for the postgres database.
|
Package postgrestest provides CRUD utilities for the postgres database. |
Click to show internal directories.
Click to hide internal directories.