Versions in this module Expand all Collapse all v0 v0.1.0 Jun 24, 2026 Changes in this version + const StatusDone + const StatusFailed + const StatusPending + const StatusRunning + func RegisterStep(typ string, fn StepFunc) + type Run struct + Error string + ID string + Started time.Time + State map[string]any + Status string + Step int + Workflow string + type Service struct + func FromKernel(k *togo.Kernel) (*Service, bool) + func (s *Service) Define(wf Workflow) + func (s *Service) Definitions() []string + func (s *Service) GetRun(id string) (*Run, bool) + func (s *Service) Trigger(ctx context.Context, name string, input map[string]any) (*Run, error) + type Step struct + Name string + Type string + With map[string]any + type StepContext struct + Kernel *togo.Kernel + Next *int + Run *Run + type StepFunc func(ctx context.Context, sc *StepContext, with map[string]any) error + type Workflow struct + Name string + Steps []Step