# Functions
EnableVerboseLogging enable or disable verbose logging.
ExecuteActivity requests activity execution in the context of a workflow.
ExecuteChildWorkflow requests child workflow execution in the context of a workflow.
ExecuteLocalActivity requests to run a local activity.
GetActivityInfo returns information about currently executing activity.
GetActivityLogger returns a logger that can be used in activity.
GetActivityMetricsScope returns a metrics scope that can be used in activity.
GetLogger returns a logger to be used in workflow's context.
GetMetricsScope returns a metrics scope to be used in workflow's context.
GetSignalChannel returns channel corresponding to the signal name.
GetVersion is used to safely perform backwards incompatible changes to workflow definitions.
GetWorkflowInfo extracts info of a current workflow from a context.
Go creates a new coroutine.
GoNamed creates a new coroutine with a given human readable name.
IsReplaying returns whether the current workflow code is replaying.
NewBufferedChannel create new buffered Channel instance.
NewCanceledError creates CanceledError instance.
NewChannel create new Channel instance.
NewClient creates an instance of a workflow client.
NewContinueAsNewError creates ContinueAsNewError instance If the workflow main function returns this error then the current execution is ended and the new execution with same workflow ID is started automatically with options provided to this function.
NewCustomError create new instance of *CustomError with reason and optional details.
NewDisconnectedContext returns a new context that won't propagate parent's cancellation to the new child context.
NewDomainClient creates an instance of a domain client, to manager lifecycle of domains.
NewFuture creates a new future as well as associated Settable that is used to set its value.
NewHeartbeatTimeoutError creates TimeoutError instance.
NewNamedBufferedChannel create new BufferedChannel instance with a given human readable name.
NewNamedChannel create new Channel instance with a given human readable name.
NewNamedSelector creates a new Selector instance with a given human readable name.
NewSelector creates a new Selector instance.
NewTimeoutError creates TimeoutError instance.
NewTimer returns immediately and the future becomes ready after the specified duration d.
NewWorker creates an instance of worker for managing workflow and activity executions.
Now returns the current time when the decision is started or replayed.
RecordActivityHeartbeat sends heartbeat for the currently executing activity If the activity is either cancelled (or) workflow/activity doesn't exist then we would cancel the context with error context.Canceled.
RegisterActivity - register a activity function with the framework.
RegisterActivityWithOptions registers the activity function with options The user can use options to provide an external name for the activity or leave it empty if no external name is required.
RegisterWorkflow - registers a workflow function with the framework.
RegisterWorkflowWithOptions registers the workflow function with options The user can use options to provide an external name for the workflow or leave it empty if no external name is required.
RequestCancelExternalWorkflow can be used to request cancellation of an external workflow.
SetQueryHandler sets the query handler to handle workflow query.
SideEffect executes provided function once, records its result into the workflow history.
SignalExternalWorkflow can be used to send signal info to an external workflow.
Sleep pauses the current workflow for at least the duration d.
WithActivityOptions adds all options to the copy of the context.
WithActivityTask adds activity specific information into context.
WithCancel returns a copy of parent with a new Done channel.
WithChildPolicy adds a ChildWorkflowPolicy to the context.
WithChildWorkflowOptions adds all workflow options to the context.
WithExecutionStartToCloseTimeout adds a workflow execution timeout to the context.
WithHeartbeatTimeout adds a timeout to the copy of the context.
WithLocalActivityOptions adds local activity options to the copy of the context.
WithScheduleToCloseTimeout adds a timeout to the copy of the context.
WithScheduleToStartTimeout adds a timeout to the copy of the context.
WithStartToCloseTimeout adds a timeout to the copy of the context.
WithTaskList adds a task list to the copy of the context.
WithValue returns a copy of parent in which the value associated with key is val.
WithWaitForCancellation adds wait for the cacellation to the copy of the context.
WithWorkflowDomain adds a domain to the context.
WithWorkflowID adds a workflowID to the context.
WithWorkflowTaskList adds a task list to the context.
WithWorkflowTaskStartToCloseTimeout adds a decision timeout to the context.
# Constants
ChildWorkflowPolicyAbandon is policy that will have no impact to child workflow execution when parent workflow is terminated.
ChildWorkflowPolicyRequestCancel is policy that will send cancel request to all open child workflows when parent workflow is terminated.
ChildWorkflowPolicyTerminate is policy that will terminate all child workflows when parent workflow is terminated.
DefaultVersion is a version returned by GetVersion for code that wasn't versioned before.
FeatureVersion is a semver that represents the feature set of this cadence client library support.
LibraryVersion is a semver that represents the version of this cadence client library.
QueryTypeStackTrace is the build in query type for Client.QueryWorkflow() call.
WorkflowIDReusePolicyAllowDuplicate allow start a workflow execution using the same workflow ID,when workflow not running.
WorkflowIDReusePolicyAllowDuplicateFailedOnly allow start a workflow execution when workflow not running, and the last execution close state is in [terminated, cancelled, timeouted, failed].
WorkflowIDReusePolicyRejectDuplicate do not allow start a workflow execution using the same workflow ID at all.
# Variables
ErrActivityResultPending is returned from activity's implementation to indicate the activity is not completed when activity method returns.
ErrCanceled is the error returned by Context.Err when the context is canceled.
ErrDeadlineExceeded is the error returned by Context.Err when the context's deadline passes.
ErrNoData is returned when trying to extract strong typed data while there is no data available.
# Structs
No description provided by the author
ActivityOptions stores all activity-specific parameters that will be stored inside of a context.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LocalActivityOptions stores local activity specific parameters that will be stored inside of a context.
No description provided by the author
No description provided by the author
No description provided by the author
RegisterWorkflowOptions consists of options for registering a workflow.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WorkflowInfo information about currently executing workflow.
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Context is a clone of context.Context with Done() returning Channel instead of native channel.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ServiceInvoker abstracts calls to the Cadence service from an activity implementation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
A CancelFunc tells an operation to abandon its work.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author