Documentation
¶
Index ¶
- Constants
- func CloneTraceContext(value *protos.TraceContext) *protos.TraceContext
- func CompareTaskVersions(left, right string) int
- func ContextWithTraceContext(ctx context.Context, value *protos.TraceContext) context.Context
- func EntitySignalProperty(requestID string) string
- func FromRuntimeStatusString(status string) protos.OrchestrationStatus
- func GetTaskFunctionName(f any) string
- func IsEntityInstanceID(instanceID string) bool
- func NewCompleteOrchestrationAction(taskID int32, status protos.OrchestrationStatus, ...) *protos.OrchestratorAction
- func NewCreateSubOrchestrationAction(taskID int32, name string, iid string, input *wrapperspb.StringValue, ...) *protos.OrchestratorAction
- func NewCreateTimerAction(taskID int32, fireAt time.Time) *protos.OrchestratorAction
- func NewEntityLockRequestedAction(id int32, criticalSectionID string, parentInstanceID string, lockSet []string) *protos.OrchestratorAction
- func NewEntityOperationCalledAction(id int32, requestID string, entityID string, parentInstanceID string, ...) *protos.OrchestratorAction
- func NewEntityOperationSignaledAction(id int32, requestID string, entityID string, operation string, ...) *protos.OrchestratorAction
- func NewEntityUnlockSentAction(id int32, criticalSectionID string, parentInstanceID string, entityID string) *protos.OrchestratorAction
- func NewEventRaisedEvent(name string, rawInput *wrapperspb.StringValue) *protos.HistoryEvent
- func NewExecutionStartedEvent(name string, instanceId string, input *wrapperspb.StringValue, ...) *protos.HistoryEvent
- func NewExecutionTerminatedEvent(rawReason *wrapperspb.StringValue, recurse bool) *protos.HistoryEvent
- func NewOrchestratorStartedEvent() *protos.HistoryEvent
- func NewParentInfo(taskID int32, name string, iid string) *protos.ParentInstanceInfo
- func NewResumeOrchestrationEvent(reason string) *protos.HistoryEvent
- func NewScheduleTaskAction(taskID int32, name string, input *wrapperspb.StringValue, ...) *protos.OrchestratorAction
- func NewSendEventAction(iid string, name string, data *wrapperspb.StringValue) *protos.OrchestratorAction
- func NewSendEventEvent(eventID int32, instanceID string, name string, ...) *protos.HistoryEvent
- func NewSubOrchestrationCreatedEvent(eventID int32, name string, version *wrapperspb.StringValue, ...) *protos.HistoryEvent
- func NewSuspendOrchestrationEvent(reason string) *protos.HistoryEvent
- func NewTaskCompletedEvent(taskID int32, result *wrapperspb.StringValue) *protos.HistoryEvent
- func NewTaskFailedEvent(taskID int32, failureDetails *protos.TaskFailureDetails) *protos.HistoryEvent
- func NewTaskScheduledEvent(taskID int32, name string, version *wrapperspb.StringValue, ...) *protos.HistoryEvent
- func NewTimerCreatedEvent(eventID int32, fireAt *timestamppb.Timestamp) *protos.HistoryEvent
- func NewTimerFiredEvent(timerID int32, fireAt *timestamppb.Timestamp, ...) *protos.HistoryEvent
- func OrchestratorActionTraceContext(parent *protos.TraceContext) (*protos.TraceContext, error)
- func ParseEntityInstanceID(instanceID string) (string, string, error)
- func SpanContextFromTraceContext(value *protos.TraceContext) trace.SpanContext
- func ToLowerInvariant(s string) string
- func ToRuntimeStatusString(status protos.OrchestrationStatus) string
- func TraceContextFromSpanContext(spanContext trace.SpanContext) *protos.TraceContext
- func ValidateEntityName(name string) error
- func ValidateOrchestrationInstanceID(instanceID string) error
Constants ¶
const RejectAllWorkItemFilterName = "\x00__durabletask_reject_all__"
RejectAllWorkItemFilterName is the sentinel orchestration/activity name a worker advertises when its registry matches nothing, so the scheduler sends it no work instead of falling back to unfiltered delivery.
Variables ¶
This section is empty.
Functions ¶
func CloneTraceContext ¶
func CloneTraceContext(value *protos.TraceContext) *protos.TraceContext
CloneTraceContext returns an independent copy of the active W3C trace fields.
func CompareTaskVersions ¶
CompareTaskVersions uses numeric comparison for two to four nonnegative integer components, otherwise case-insensitive lexical comparison. An empty version sorts before every nonempty version.
func ContextWithTraceContext ¶
ContextWithTraceContext restores a wire parent without starting or recording a span.
func EntitySignalProperty ¶
func FromRuntimeStatusString ¶ added in v0.1.1
func FromRuntimeStatusString(status string) protos.OrchestrationStatus
func GetTaskFunctionName ¶ added in v0.1.1
func IsEntityInstanceID ¶
IsEntityInstanceID reports whether the instance ID uses the reserved entity format.
func NewCompleteOrchestrationAction ¶
func NewCompleteOrchestrationAction( taskID int32, status protos.OrchestrationStatus, rawResult *wrapperspb.StringValue, carryoverEvents []*protos.HistoryEvent, failureDetails *protos.TaskFailureDetails, ) *protos.OrchestratorAction
func NewCreateSubOrchestrationAction ¶
func NewCreateSubOrchestrationAction( taskID int32, name string, iid string, input *wrapperspb.StringValue, version ...*wrapperspb.StringValue, ) *protos.OrchestratorAction
func NewCreateTimerAction ¶
func NewCreateTimerAction(taskID int32, fireAt time.Time) *protos.OrchestratorAction
func NewEntityOperationCalledAction ¶
func NewEntityOperationCalledAction( id int32, requestID string, entityID string, parentInstanceID string, parentExecutionID string, operation string, input *wrapperspb.StringValue, ) *protos.OrchestratorAction
func NewEntityOperationSignaledAction ¶
func NewEntityOperationSignaledAction( id int32, requestID string, entityID string, operation string, input *wrapperspb.StringValue, scheduledTime *timestamppb.Timestamp, ) *protos.OrchestratorAction
func NewEventRaisedEvent ¶
func NewEventRaisedEvent(name string, rawInput *wrapperspb.StringValue) *protos.HistoryEvent
func NewExecutionStartedEvent ¶
func NewExecutionStartedEvent( name string, instanceId string, input *wrapperspb.StringValue, parent *protos.ParentInstanceInfo, parentTraceContext *protos.TraceContext, scheduledStartTimeStamp *timestamppb.Timestamp, version ...*wrapperspb.StringValue, ) *protos.HistoryEvent
func NewExecutionTerminatedEvent ¶
func NewExecutionTerminatedEvent(rawReason *wrapperspb.StringValue, recurse bool) *protos.HistoryEvent
func NewOrchestratorStartedEvent ¶
func NewOrchestratorStartedEvent() *protos.HistoryEvent
func NewParentInfo ¶
func NewParentInfo(taskID int32, name string, iid string) *protos.ParentInstanceInfo
func NewResumeOrchestrationEvent ¶ added in v0.1.4
func NewResumeOrchestrationEvent(reason string) *protos.HistoryEvent
func NewScheduleTaskAction ¶
func NewScheduleTaskAction( taskID int32, name string, input *wrapperspb.StringValue, version ...*wrapperspb.StringValue, ) *protos.OrchestratorAction
func NewSendEventAction ¶
func NewSendEventAction(iid string, name string, data *wrapperspb.StringValue) *protos.OrchestratorAction
func NewSendEventEvent ¶
func NewSendEventEvent(eventID int32, instanceID string, name string, rawInput *wrapperspb.StringValue) *protos.HistoryEvent
func NewSubOrchestrationCreatedEvent ¶
func NewSubOrchestrationCreatedEvent( eventID int32, name string, version *wrapperspb.StringValue, rawInput *wrapperspb.StringValue, instanceID string, parentTraceContext *protos.TraceContext, ) *protos.HistoryEvent
func NewSuspendOrchestrationEvent ¶ added in v0.1.4
func NewSuspendOrchestrationEvent(reason string) *protos.HistoryEvent
func NewTaskCompletedEvent ¶
func NewTaskCompletedEvent(taskID int32, result *wrapperspb.StringValue) *protos.HistoryEvent
func NewTaskFailedEvent ¶
func NewTaskFailedEvent(taskID int32, failureDetails *protos.TaskFailureDetails) *protos.HistoryEvent
func NewTaskScheduledEvent ¶
func NewTaskScheduledEvent( taskID int32, name string, version *wrapperspb.StringValue, rawInput *wrapperspb.StringValue, tc *protos.TraceContext, ) *protos.HistoryEvent
func NewTimerCreatedEvent ¶
func NewTimerCreatedEvent(eventID int32, fireAt *timestamppb.Timestamp) *protos.HistoryEvent
func NewTimerFiredEvent ¶
func NewTimerFiredEvent( timerID int32, fireAt *timestamppb.Timestamp, parentTraceContext *protos.TraceContext, ) *protos.HistoryEvent
func OrchestratorActionTraceContext ¶
func OrchestratorActionTraceContext(parent *protos.TraceContext) (*protos.TraceContext, error)
OrchestratorActionTraceContext creates the trace context for a service-owned activity or sub-orchestration scheduling span.
func ParseEntityInstanceID ¶
ParseEntityInstanceID parses an entity instance ID in the format "@<name>@<key>".
func SpanContextFromTraceContext ¶ added in v0.1.1
func SpanContextFromTraceContext(value *protos.TraceContext) trace.SpanContext
SpanContextFromTraceContext parses a wire trace context into a remote span context. Missing or malformed values return an invalid span context.
func ToLowerInvariant ¶
ToLowerInvariant lowercases s exactly like .NET's String.ToLowerInvariant, so entity names and operation names resolve identically across SDKs. It agrees with strings.ToLower for every code point except [dottedCapitalI].
func ToRuntimeStatusString ¶ added in v0.1.1
func ToRuntimeStatusString(status protos.OrchestrationStatus) string
func TraceContextFromSpanContext ¶
func TraceContextFromSpanContext(spanContext trace.SpanContext) *protos.TraceContext
TraceContextFromSpanContext converts any valid span context, sampled or not, into its wire form, so an unsampled caller's decision propagates instead of starting an unrelated trace. Invalid span contexts return nil.
func ValidateEntityName ¶
ValidateEntityName applies the durable-entity naming constraints used by the wire format.
func ValidateOrchestrationInstanceID ¶
ValidateOrchestrationInstanceID rejects orchestration IDs that collide with entity instance IDs.
Types ¶
This section is empty.