common

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionID

type ExecutionID struct {
	WorkflowID string `json:"workflow_id"`
	RunID      string `json:"run_id"`
}

ExecutionID identifies a running or completed Temporal workflow execution. It is serialized to JSON and stored as the opaque executor execution ID returned to callers after a task is dispatched.

func NewExecutionID

func NewExecutionID(workflowID string, runID string) (*ExecutionID, error)

NewExecutionID constructs a validated ExecutionID. Both workflowID and runID are required; returns an error if either is empty.

func NewFromEncoded

func NewFromEncoded(encoded string) (*ExecutionID, error)

NewFromEncoded deserializes an ExecutionID from the JSON string produced by Encode.

func (*ExecutionID) Encode

func (id *ExecutionID) Encode() (string, error)

Encode serializes the ExecutionID to a JSON string suitable for storage and later recovery via NewFromEncoded.

func (*ExecutionID) String

func (id *ExecutionID) String() string

String returns a human-readable representation for logging.

type Target

type Target struct {
	Type         devicetypes.ComponentType
	ComponentIDs []string
}

Target represents a batch of components of the same type for activity execution. Workflow passes only component IDs to activity (not full objects).

func (*Target) String

func (t *Target) String() string

String returns a human-readable representation for logging.

func (*Target) Validate

func (t *Target) Validate() error

Validate returns an error if the Target has an unknown component type or no component IDs.

Jump to

Keyboard shortcuts

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