client

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwaitWorkflowResult

func AwaitWorkflowResult[T any, R any](
	ctx context.Context,
	backend backend.Backend,
	workflow types.Workflow[T, R],
	workflowID string,
) (*R, error, error)

func GetWorkflowResult

func GetWorkflowResult[T any, R any](
	ctx context.Context,
	backend backend.Backend,
	workflow types.Workflow[T, R],
	workflowID string,
) (*dto.WorkflowExecutionResult, error)

func ScheduleWorkflow

func ScheduleWorkflow[T any, R any](
	ctx context.Context,
	backend backend.Backend,
	workflow types.Workflow[T, R],
	input *T,
	options WorkflowScheduleOptions,
) error

func ScheduleWorkflowUnsafe added in v0.0.5

func ScheduleWorkflowUnsafe(
	ctx context.Context,
	backend backend.Backend,
	workflowName string,
	input any,
	options WorkflowScheduleOptions,
) error

func SignalWorkflow

func SignalWorkflow(
	ctx context.Context,
	backend backend.Backend,
	workflowID string,
	eventName string,
	eventInput []byte,
) error

Types

type WorkflowScheduleOptions

type WorkflowScheduleOptions struct {
	WorkflowID               string
	Version                  string
	ScheduleToStartTimestamp *int64
}

Jump to

Keyboard shortcuts

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