contracts

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordWorkflowStarted

func RecordWorkflowStarted(context.Context, WorkflowStarted) error

func Register

func Register(registry *gowdkcontracts.Registry)

Types

type DashboardSnapshot

type DashboardSnapshot struct {
	OpenWorkflows int    `json:"openWorkflows"`
	Source        string `json:"source"`
}

type GetDashboardSnapshot

type GetDashboardSnapshot struct{}

type StartWorkflow

type StartWorkflow struct {
	Name string
}

type StartWorkflowResult

type StartWorkflowResult struct {
	ID string `json:"id"`
}

func HandleStartWorkflow

func HandleStartWorkflow(ctx context.Context, command StartWorkflow) (StartWorkflowResult, error)

type WorkflowStarted

type WorkflowStarted struct {
	ID   string
	Name string
}

Jump to

Keyboard shortcuts

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