Documentation
¶
Index ¶
- Constants
- func Migrate(root *sconfig.Root, logger *slog.Logger, opts ...MigrateOption) error
- type Client
- type MigrateOption
- type Runtime
- func (r *Runtime) Backend() wfbackend.Backend
- func (r *Runtime) Client() Client
- func (r *Runtime) Close() error
- func (r *Runtime) CreateWorkflowInstance(ctx context.Context, options client.WorkflowInstanceOptions, ...) (*wflib.Instance, error)
- func (r *Runtime) DiagnosticBackend() (diag.Backend, error)
- func (r *Runtime) GetWorkflowInstanceHistory(ctx context.Context, instance *wflib.Instance, lastSequenceID *int64) ([]*history.Event, error)
- func (r *Runtime) GetWorkflowInstanceState(ctx context.Context, instance *wflib.Instance) (wfcore.WorkflowInstanceState, error)
- func (r *Runtime) Ping(ctx context.Context) bool
- type RuntimeOption
- type Worker
Constants ¶
View Source
const (
DefaultQueue = wflib.QueueDefault
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
CreateWorkflowInstance(ctx context.Context, options client.WorkflowInstanceOptions, workflow wflib.Workflow, args ...any) (*wflib.Instance, error)
GetWorkflowInstanceState(ctx context.Context, instance *wflib.Instance) (wfcore.WorkflowInstanceState, error)
GetWorkflowInstanceHistory(ctx context.Context, instance *wflib.Instance, lastSequenceID *int64) ([]*history.Event, error)
}
type MigrateOption ¶
type MigrateOption func(*migrateOptions)
func WithPostgresMigrationDB ¶
func WithPostgresMigrationDB(db *sql.DB) MigrateOption
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func NewRuntime ¶
func NewRuntime(root *sconfig.Root, telemetry *aptelemetry.Providers, logger *slog.Logger, opts ...RuntimeOption) (*Runtime, error)
func (*Runtime) CreateWorkflowInstance ¶
func (*Runtime) GetWorkflowInstanceHistory ¶
func (*Runtime) GetWorkflowInstanceState ¶
type RuntimeOption ¶
type RuntimeOption func(*runtimeOptions)
func WithPostgresDB ¶
func WithPostgresDB(db *sql.DB) RuntimeOption
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func (*Worker) RegisterActivity ¶
func (*Worker) RegisterWorkflow ¶
func (*Worker) WaitForCompletion ¶
Click to show internal directories.
Click to hide internal directories.