Documentation
¶
Overview ¶
Package execution owns Restate attempts and suspension-safe runtime state.
Package execution owns Restate attempts and suspension-safe runtime state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct {
// Registry supplies immutable handlers and actual-attempt telemetry.
Registry *workflow.Registry
// Service resolves exact case-sensitive native service names.
Service func(string) string
// Active joins the shared Cancel handler to local active attempts.
Active *sync.Map
}
Environment supplies registry, service naming and local cancellation state.
func (Environment) Definition ¶
func (environment Environment) Definition(handler workflow.WorkflowHandler) restatesdk.ServiceDefinition
Definition builds the service of one workflow.
Click to show internal directories.
Click to hide internal directories.