Documentation ¶
Index ¶
- func AttemptErrorFromInternal(e *AttemptError) rivertype.AttemptError
- func JobRowFromInternal(internal *RiverJob) *rivertype.JobRow
- func JobRowsFromInternal(internal []*RiverJob) []*rivertype.JobRow
- type AttemptError
- type DBTX
- type JobCancelParams
- type JobDeleteBeforeParams
- type JobGetAvailableParams
- type JobGetByKindAndUniquePropertiesParams
- type JobGetStuckParams
- type JobInsertManyParams
- type JobInsertParams
- type JobRescueManyParams
- type JobScheduleParams
- type JobSetStateIfRunningParams
- type JobSetStateParams
- type JobState
- type JobUpdateParams
- type LeadershipAttemptElectParams
- type LeadershipAttemptReelectParams
- type LeadershipResignParams
- type NullJobState
- type Queries
- func (q *Queries) JobCancel(ctx context.Context, db DBTX, arg JobCancelParams) (*RiverJob, 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) JobRetryImmediately(ctx context.Context, db DBTX, id int64) (*RiverJob, error)
- func (q *Queries) JobSchedule(ctx context.Context, db DBTX, arg JobScheduleParams) (int64, error)
- func (q *Queries) JobSetState(ctx context.Context, db DBTX, arg JobSetStateParams) (*RiverJob, error)
- func (q *Queries) JobSetStateIfRunning(ctx context.Context, db DBTX, arg JobSetStateIfRunningParams) (*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
- type RiverJob
- type RiverLeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttemptErrorFromInternal ¶ added in v0.0.6
func AttemptErrorFromInternal(e *AttemptError) rivertype.AttemptError
func JobRowFromInternal ¶ added in v0.0.6
func JobRowsFromInternal ¶ added in v0.0.17
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 JobCancelParams ¶ added in v0.0.17
type JobDeleteBeforeParams ¶
type JobGetAvailableParams ¶
type JobGetStuckParams ¶
type JobInsertManyParams ¶
type JobInsertParams ¶
type JobRescueManyParams ¶ added in v0.0.4
type JobScheduleParams ¶
type JobSetStateIfRunningParams ¶ added in v0.0.13
type JobSetStateParams ¶ added in v0.0.13
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) 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) JobRetryImmediately ¶ added in v0.0.19
func (*Queries) JobSchedule ¶
func (*Queries) JobSetState ¶ added in v0.0.13
func (*Queries) JobSetStateIfRunning ¶ added in v0.0.13
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 ¶
Click to show internal directories.
Click to hide internal directories.