This section is empty.
This section is empty.
This section is empty.
type Driver struct { riverpgxv5.Driver // 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, client *river.Client[pgx.Tx])
PluginInit initializes a plugin with an archetype and client. It's invoked on Client.NewClient.
PluginMaintenanceServices returns additional maintenance services (will only run on an elected leader) for a River client.
func (d *Driver) PluginPilot() riverpilot.Pilot
PluginServices returns additional non-maintenance services (will run on all clients) for a River client.
func (d *Driver) ProConfigInit(pilot riverpilot.Pilot, config *driver.Config)
func (d *Driver) UnwrapExecutor(tx pgx.Tx) riverdriver.ExecutorTx
func (d *Driver) UnwrapProExecutor(tx pgx.Tx) driver.ProExecutorTx
type Executor struct { // riverdriver.Executor *riverpgxv5.Executor // contains filtered or unexported fields }
func (e *Executor) Begin(ctx context.Context) (riverdriver.ExecutorTx, error)
func (e *Executor) JobGetAvailable(ctx context.Context, params *riverdriver.JobGetAvailableParams) ([]*rivertype.JobRow, 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) WorkflowLoadTasksByNames(ctx context.Context, params *driver.WorkflowLoadTasksByNamesParams) ([]*driver.WorkflowTask, error)