Versions in this module Expand all Collapse all v0 v0.1.1 Nov 10, 2026 v0.1.0 Nov 10, 2026 Changes in this version + var ErrKeyRequired = errors.New(...) + func DefaultClassifier(err error) bool + func StrictClassifier(err error) bool + type Classifier func(err error) bool + type Client struct + func New(primary, secondary workflow.Client, opts ...Option) *Client + func (f *Client) Cancel(ctx context.Context, ref workflow.RunRef) error + func (f *Client) CancelAll(ctx context.Context, q workflow.RunQuery) (int, error) + func (f *Client) CancelStep(ctx context.Context, ref workflow.RunRef, step string) error + func (f *Client) Capabilities() workflow.Caps + func (f *Client) Delete(ctx context.Context, ref workflow.RunRef) error + func (f *Client) Done() <-chan struct{} + func (f *Client) Drain(ctx context.Context) error + func (f *Client) DrainWithReport(ctx context.Context) (workflow.DrainReport, error) + func (f *Client) Enqueue(ctx context.Context, job workflow.Job) (workflow.RunRef, error) + func (f *Client) EnqueueClosure(ctx context.Context, c workflow.ClosureJob) (workflow.RunRef, error) + func (f *Client) ForceComplete(ctx context.Context, ref workflow.RunRef) error + func (f *Client) ForceFail(ctx context.Context, ref workflow.RunRef, reason string) error + func (f *Client) Health(ctx context.Context) workflow.HealthReport + func (f *Client) Nodes(ctx context.Context) ([]workflow.NodeInfo, error) + func (f *Client) OnLifecycle(fn workflow.LifecycleFunc) error + func (f *Client) OnRunFinished(fn workflow.RunFinishedFunc) error + func (f *Client) OnTick(fn workflow.TickObserver) error + func (f *Client) Pause(ctx context.Context, t workflow.PauseTarget) error + func (f *Client) PauseSchedule(ctx context.Context, t workflow.ScheduleTarget) error + func (f *Client) Paused(ctx context.Context) ([]workflow.PauseTarget, error) + func (f *Client) PayloadLimit() int + func (f *Client) QueueLoads(ctx context.Context) ([]workflow.QueueLoad, error) + func (f *Client) Register(wf workflow.Workflow) error + func (f *Client) Reschedule(ctx context.Context, ref workflow.RunRef, at time.Time) (workflow.RunRef, error) + func (f *Client) Result(ctx context.Context, ref workflow.RunRef) ([]byte, error) + func (f *Client) Resume(ctx context.Context, t workflow.PauseTarget) error + func (f *Client) ResumeSchedule(ctx context.Context, t workflow.ScheduleTarget) error + func (f *Client) Retry(ctx context.Context, ref workflow.RunRef) (workflow.RunRef, error) + func (f *Client) Runs(ctx context.Context, q workflow.RunQuery) (workflow.RunPage, error) + func (f *Client) Schedule(ctx context.Context, s workflow.Schedule) (workflow.ScheduleID, error) + func (f *Client) Schedules(ctx context.Context) ([]workflow.ScheduleInfo, error) + func (f *Client) SetWorkers(ctx context.Context, queue string, n int) error + func (f *Client) Signal(ctx context.Context, ev workflow.Event) error + func (f *Client) Start(ctx context.Context) error + func (f *Client) Status(ctx context.Context, ref workflow.RunRef) (workflow.Status, error) + func (f *Client) StopCause() error + func (f *Client) Supports(op workflow.Op) bool + func (f *Client) TriggerSchedule(ctx context.Context, id workflow.ScheduleID) (workflow.RunRef, error) + func (f *Client) Unschedule(ctx context.Context, id workflow.ScheduleID) error + type Event struct + At time.Time + Err error + Kind EventKind + Until time.Time + Workflow string + type EventKind string + const EventCoolOffEnded + const EventCoolOffStarted + const EventFailedOver + const EventPrimarySkipped + type Observer func(ctx context.Context, ev Event) + type Option func(*Client) + func AllowWithoutKey() Option + func WithClassifier(c Classifier) Option + func WithClock(c clock.Clock) Option + func WithCoolOff(n int, d time.Duration) Option + func WithObserver(fn Observer) Option + func WithSchedulesOnBoth() Option