This section is empty.
This section is empty.
This section is empty.
type Driver struct {
riverpgxv5.Driver
*baseservice.Archetype
// contains filtered or unexported fields
}
Driver is an implementation of riverdriver.Driver for Pgx v5.
func (d *Driver) GetExecutor() riverdriver.Executor
func (d *Driver) GetProExecutor() driver.ProExecutor
func (d *Driver) PluginInit(archetype *baseservice.Archetype)
PluginInit initializes a plugin with an archetype. It's invoked on Client.NewClient.
func (d *Driver) PluginPilot() riverpilot.Pilot
func (d *Driver) ProConfigInit(pilot riverpilot.Pilot)
func (d *Driver) UnwrapExecutor(tx pgx.Tx) riverdriver.ExecutorTx
func (d *Driver) UnwrapProExecutor(tx pgx.Tx) driver.ProExecutorTx
func (d *Driver) UnwrapTx(execTx riverdriver.ExecutorTx) pgx.Tx
type Executor struct {
*riverpgxv5.Executor
// contains filtered or unexported fields
}
func (e *Executor) Begin(ctx context.Context) (riverdriver.ExecutorTx, error)
func (e *Executor) GetPendingWorkflowIDs(ctx context.Context, params *driver.GetPendingWorkflowIDsParams) ([]*driver.GetPendingWorkflowIDsRow, error)
func (e *Executor) PeriodicJobGetAll(ctx context.Context, params *driver.PeriodicJobGetAllParams) ([]*driver.PeriodicJob, error)
func (e *Executor) PeriodicJobGetByID(ctx context.Context, params *driver.PeriodicJobGetByIDParams) (*driver.PeriodicJob, error)
func (e *Executor) PeriodicJobInsert(ctx context.Context, params *driver.PeriodicJobInsertParams) (*driver.PeriodicJob, error)
func (e *Executor) PeriodicJobKeepAliveAndReap(ctx context.Context, params *driver.PeriodicJobKeepAliveAndReapParams) ([]*driver.PeriodicJob, error)
func (e *Executor) PeriodicJobUpsertMany(ctx context.Context, params *driver.PeriodicJobUpsertManyParams) ([]*driver.PeriodicJob, error)
func (e *Executor) ProducerListByQueue(ctx context.Context, params *driver.ProducerListByQueueParams) ([]*driver.ProducerListByQueueResult, error)
func (e *Executor) QueueGetMetadataForInsert(ctx context.Context, params *driver.QueueGetMetadataForInsertParams) ([]*driver.QueueGetMetadataForInsertResult, error)
func (e *Executor) SequencePromoteFromTable(ctx context.Context, params *driver.SequencePromoteFromTableParams) (*driver.SequencePromoteFromTableResult, error)
func (e *Executor) SequenceScanAndPromoteStalled(ctx context.Context, params *driver.SequenceScanAndPromoteStalledParams) (*driver.SequenceScanAndPromoteStalledResult, error)
func (e *Executor) WorkflowListActive(ctx context.Context, params *driver.WorkflowListParams) ([]*driver.WorkflowListItem, error)
func (e *Executor) WorkflowListAll(ctx context.Context, params *driver.WorkflowListParams) ([]*driver.WorkflowListItem, error)
func (e *Executor) WorkflowListInactive(ctx context.Context, params *driver.WorkflowListParams) ([]*driver.WorkflowListItem, error)
func (e *Executor) WorkflowLoadJobsWithDeps(ctx context.Context, params *driver.WorkflowLoadJobsWithDepsParams) ([]*driver.WorkflowTaskWithJob, error)
func (e *Executor) WorkflowLoadTaskWithDeps(ctx context.Context, params *driver.WorkflowLoadTaskWithDepsParams) (*driver.WorkflowTaskWithJob, error)
func (e *Executor) WorkflowLoadTasksByNames(ctx context.Context, params *driver.WorkflowLoadTasksByNamesParams) ([]*driver.WorkflowTask, error)
func (e *Executor) WorkflowRetryLockAndCheckRunning(ctx context.Context, params *driver.WorkflowRetryLockAndCheckRunningParams) (*driver.WorkflowRetryLockAndCheckRunningResult, error)
type ExecutorTx struct {
Executor
// contains filtered or unexported fields
}
func (e *ExecutorTx) BeginPro(ctx context.Context) (driver.ProExecutorTx, error)
func (t *ExecutorTx) Commit(ctx context.Context) error
func (t *ExecutorTx) Rollback(ctx context.Context) error