Documentation ¶
Index ¶
- type AttemptError
- type DBTX
- type JobCompleteManyParams
- type JobDeleteBeforeParams
- type JobGetAvailableParams
- type JobGetByKindAndUniquePropertiesParams
- type JobGetStuckParams
- type JobInsertManyParams
- type JobInsertParams
- type JobRescueManyParams
- type JobScheduleParams
- type JobSetCancelledIfRunningParams
- type JobSetCompletedIfRunningParams
- type JobSetCompletedParams
- type JobSetDiscardedIfRunningParams
- type JobSetDiscardedParams
- type JobSetErroredIfRunningParams
- type JobSetSnoozedIfRunningParams
- type JobState
- type JobUpdateParams
- type LeadershipAttemptElectParams
- type LeadershipAttemptReelectParams
- type LeadershipResignParams
- type NullJobState
- type Queries
- func (q *Queries) JobCompleteMany(ctx context.Context, db DBTX, arg JobCompleteManyParams) error
- func (q *Queries) JobCountRunning(ctx context.Context, db DBTX) (int64, error)
- func (q *Queries) JobDeleteBefore(ctx context.Context, db DBTX, arg JobDeleteBeforeParams) (int64, error)
- func (q *Queries) JobGetAvailable(ctx context.Context, db DBTX, arg JobGetAvailableParams) ([]*RiverJob, error)
- func (q *Queries) JobGetByID(ctx context.Context, db DBTX, id int64) (*RiverJob, error)
- func (q *Queries) JobGetByIDMany(ctx context.Context, db DBTX, id []int64) ([]*RiverJob, error)
- func (q *Queries) JobGetByKind(ctx context.Context, db DBTX, kind string) ([]*RiverJob, error)
- func (q *Queries) JobGetByKindAndUniqueProperties(ctx context.Context, db DBTX, arg JobGetByKindAndUniquePropertiesParams) (*RiverJob, error)
- func (q *Queries) JobGetByKindMany(ctx context.Context, db DBTX, kind []string) ([]*RiverJob, error)
- func (q *Queries) JobGetStuck(ctx context.Context, db DBTX, arg JobGetStuckParams) ([]*RiverJob, error)
- func (q *Queries) JobInsert(ctx context.Context, db DBTX, arg JobInsertParams) (*RiverJob, error)
- func (q *Queries) JobInsertMany(ctx context.Context, db DBTX, arg []JobInsertManyParams) (int64, error)
- func (q *Queries) JobRescueMany(ctx context.Context, db DBTX, arg JobRescueManyParams) error
- func (q *Queries) JobSchedule(ctx context.Context, db DBTX, arg JobScheduleParams) (int64, error)
- func (q *Queries) JobSetCancelledIfRunning(ctx context.Context, db DBTX, arg JobSetCancelledIfRunningParams) (*RiverJob, error)
- func (q *Queries) JobSetCompleted(ctx context.Context, db DBTX, arg JobSetCompletedParams) (*RiverJob, error)
- func (q *Queries) JobSetCompletedIfRunning(ctx context.Context, db DBTX, arg JobSetCompletedIfRunningParams) (*RiverJob, error)
- func (q *Queries) JobSetDiscarded(ctx context.Context, db DBTX, arg JobSetDiscardedParams) (*RiverJob, error)
- func (q *Queries) JobSetDiscardedIfRunning(ctx context.Context, db DBTX, arg JobSetDiscardedIfRunningParams) (*RiverJob, error)
- func (q *Queries) JobSetErroredIfRunning(ctx context.Context, db DBTX, arg JobSetErroredIfRunningParams) (*RiverJob, error)
- func (q *Queries) JobSetSnoozedIfRunning(ctx context.Context, db DBTX, arg JobSetSnoozedIfRunningParams) (*RiverJob, error)
- func (q *Queries) JobUpdate(ctx context.Context, db DBTX, arg JobUpdateParams) (*RiverJob, error)
- func (q *Queries) LeadershipAttemptElect(ctx context.Context, db DBTX, arg LeadershipAttemptElectParams) (int64, error)
- func (q *Queries) LeadershipAttemptReelect(ctx context.Context, db DBTX, arg LeadershipAttemptReelectParams) (int64, error)
- func (q *Queries) LeadershipDeleteExpired(ctx context.Context, db DBTX, name string) error
- func (q *Queries) LeadershipResign(ctx context.Context, db DBTX, arg LeadershipResignParams) error
- func (q *Queries) PGAdvisoryXactLock(ctx context.Context, db DBTX, key int64) error
- func (q *Queries) RiverMigrationDeleteByVersionMany(ctx context.Context, db DBTX, version []int64) (*RiverMigration, error)
- func (q *Queries) RiverMigrationGetAll(ctx context.Context, db DBTX) ([]*RiverMigration, error)
- func (q *Queries) RiverMigrationInsert(ctx context.Context, db DBTX, version int64) (*RiverMigration, error)
- func (q *Queries) RiverMigrationInsertMany(ctx context.Context, db DBTX, version []int64) ([]*RiverMigration, error)
- type RiverJob
- type RiverLeader
- type RiverMigration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttemptError ¶
type DBTX ¶
type DBTX interface { Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error) Query(context.Context, string, ...interface{}) (pgx.Rows, error) QueryRow(context.Context, string, ...interface{}) pgx.Row CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) }
type JobCompleteManyParams ¶
type JobDeleteBeforeParams ¶
type JobGetAvailableParams ¶
type JobGetStuckParams ¶
type JobInsertManyParams ¶
type JobInsertParams ¶
type JobRescueManyParams ¶ added in v0.0.4
type JobScheduleParams ¶
type JobSetCompletedParams ¶
type JobSetDiscardedParams ¶
type JobUpdateParams ¶
type LeadershipResignParams ¶
type NullJobState ¶
func (*NullJobState) Scan ¶
func (ns *NullJobState) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct { }
func (*Queries) JobCompleteMany ¶
func (*Queries) JobCountRunning ¶
func (*Queries) JobDeleteBefore ¶
func (*Queries) JobGetAvailable ¶
func (*Queries) JobGetByID ¶
func (*Queries) JobGetByIDMany ¶
func (*Queries) JobGetByKind ¶
func (*Queries) JobGetByKindAndUniqueProperties ¶
func (*Queries) JobGetByKindMany ¶
func (*Queries) JobGetStuck ¶
func (*Queries) JobInsertMany ¶
func (*Queries) JobRescueMany ¶ added in v0.0.4
Run by the rescuer to queue for retry or discard depending on job state.
func (*Queries) JobSchedule ¶
func (*Queries) JobSetCancelledIfRunning ¶
func (*Queries) JobSetCompleted ¶
func (*Queries) JobSetCompletedIfRunning ¶
func (*Queries) JobSetDiscarded ¶
func (*Queries) JobSetDiscardedIfRunning ¶
func (*Queries) JobSetErroredIfRunning ¶
func (*Queries) JobSetSnoozedIfRunning ¶
func (*Queries) JobUpdate ¶
A generalized update for any property on a job. This brings in a large number of parameters and therefore may be more suitable for testing than production.
func (*Queries) LeadershipAttemptElect ¶
func (*Queries) LeadershipAttemptReelect ¶
func (*Queries) LeadershipDeleteExpired ¶
func (*Queries) LeadershipResign ¶
func (*Queries) PGAdvisoryXactLock ¶
func (*Queries) RiverMigrationDeleteByVersionMany ¶
func (*Queries) RiverMigrationGetAll ¶
func (*Queries) RiverMigrationInsert ¶
func (*Queries) RiverMigrationInsertMany ¶
type RiverLeader ¶
Click to show internal directories.
Click to hide internal directories.