跳到主要内容

Client

查看 Markdown

This page lists the Go SDK names for the Client. The doc comment of each API gives its parameters, defaults, and errors. Read them in the Go SDK API reference.

API names​

TaskGo APIDex behavior
Create a ClientNewClient, with ClientOptions. It returns a Client.Client requests
Start a FlowStartFlow, with StartFlowOptionsStart a Flow
Invoke an RPCInvokeRPCInvoke an RPC
Read AttributesGetAttributesRead Attributes
Wait for a Flow to closeWaitForFlow, with WaitForFlowOptionsWait for a Flow
Wait for a Step execution to completeWaitForStepCompletion, with WaitForStepCompletionOptionsWait for a Step
Wait until an Attribute matchesWaitForAttributeMatch, with WaitForAttributeOptionsWait for an Attribute match
Describe a FlowDescribeFlowDescribe a Flow
Search FlowsSearchFlowsSearch Flows
Stop a FlowStopFlow, with StopOptionsStop a Flow
Skip a TimerSkipTimerSkip a Timer
Update FlowConfigUpdateFlowConfigUpdate FlowConfig
Write and read a StreamWriteStream, ReadStream, and ListStreamMessagesStream
Time travel a FlowTimeTravel, with TimeTravelOptionsTime travel
Handle a failed requestServiceError, with ErrorSubStatusClient requests

Every Client method that calls Dex Server takes a context.Context as its first argument. Canceling a wait ends the call. It does not stop the Flow.

Example​

Example: examples/go/primitives/client-apis/controller.go