stdriverprofx

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package stdriverprofx builds River Pro's clients for package stdriverfx (github.com/advdv/stdgo/fx/stdriverfx/v2), which builds on open-source River only, and inserts River Pro's workflows with them.

It is a module of its own: River Pro is private, and downloading it needs River Pro's license key, which the rest of stdgo must build without.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertWorkflowManyTx

func InsertWorkflowManyTx(
	ctx context.Context, tx pgx.Tx, client *Client, workflow *riverpro.WorkflowT[pgx.Tx],
) (string, error)

InsertWorkflowManyTx validates workflow and inserts its tasks with client's InsertManyTx in tx, so the workflow commits or rolls back with the work that starts it. It returns the workflow's ID. Insert a workflow once: inserting it again inserts its tasks again.

Types

type Client

type Client = riverpro.Client[pgx.Tx]

Client is a River Pro client on a pgx pool.

func NewClient

func NewClient(pool *pgxpool.Pool, cfg *river.Config) (*Client, error)

NewClient builds a River Pro client on pool, configured by cfg. Pass it to stdriverfx.Provide for River Pro's clients.

Directories

Path Synopsis
internal
testmigrate
Package testmigrate migrates the test databases of package stdriverprofx with River's own migrations, River Pro's included, into the schema the clients use by default.
Package testmigrate migrates the test databases of package stdriverprofx with River's own migrations, River Pro's included, into the schema the clients use by default.
Package stdriverprotest waits, in tests, for the workflows that River Pro's clients (package stdriverprofx) work, as package stdrivertest does for jobs.
Package stdriverprotest waits, in tests, for the workflows that River Pro's clients (package stdriverprofx) work, as package stdrivertest does for jobs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址