Documentation
¶
Index ¶
- type DBTX
- type JobCountByQueueAndStateRow
- type JobCountByStateRow
- type JobListWorkflowParams
- type NullRiverJobState
- type Queries
- func (q *Queries) JobCountByQueueAndState(ctx context.Context, db DBTX, queueNames []string) ([]*JobCountByQueueAndStateRow, error)
- func (q *Queries) JobCountByState(ctx context.Context, db DBTX) ([]*JobCountByStateRow, error)
- func (q *Queries) JobListWorkflow(ctx context.Context, db DBTX, arg *JobListWorkflowParams) ([]*RiverJob, error)
- type RiverJob
- type RiverJobState
- type RiverLeader
- type RiverQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobCountByStateRow ¶
type JobCountByStateRow struct {
State RiverJobState
Count int64
}
type JobListWorkflowParams ¶
type NullRiverJobState ¶
type NullRiverJobState struct {
RiverJobState RiverJobState
Valid bool // Valid is true if RiverJobState is not NULL
}
func (*NullRiverJobState) Scan ¶
func (ns *NullRiverJobState) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct {
}
func (*Queries) JobCountByQueueAndState ¶
func (*Queries) JobCountByState ¶
func (*Queries) JobListWorkflow ¶
type RiverJob ¶
type RiverJob struct {
ID int64
State RiverJobState
Attempt int16
MaxAttempts int16
AttemptedAt pgtype.Timestamptz
CreatedAt pgtype.Timestamptz
FinalizedAt pgtype.Timestamptz
ScheduledAt pgtype.Timestamptz
Priority int16
Args []byte
AttemptedBy []string
Errors [][]byte
Kind string
Metadata []byte
Queue string
Tags []string
}
type RiverJobState ¶
type RiverJobState string
const ( RiverJobStateAvailable RiverJobState = "available" RiverJobStateCancelled RiverJobState = "cancelled" RiverJobStateCompleted RiverJobState = "completed" RiverJobStateDiscarded RiverJobState = "discarded" RiverJobStatePending RiverJobState = "pending" RiverJobStateRetryable RiverJobState = "retryable" RiverJobStateRunning RiverJobState = "running" RiverJobStateScheduled RiverJobState = "scheduled" )
func (*RiverJobState) Scan ¶
func (e *RiverJobState) Scan(src interface{}) error
type RiverLeader ¶
type RiverLeader struct {
ElectedAt pgtype.Timestamptz
ExpiresAt pgtype.Timestamptz
LeaderID string
Name string
}
type RiverQueue ¶
type RiverQueue struct {
Name string
CreatedAt pgtype.Timestamptz
Metadata []byte
PausedAt pgtype.Timestamptz
UpdatedAt pgtype.Timestamptz
}
Click to show internal directories.
Click to hide internal directories.