From 35fed8410a1b251db963d36deef120dd9b3b8f2f Mon Sep 17 00:00:00 2001 From: Quanzheng Long Date: Fri, 19 May 2023 14:11:58 -0700 Subject: [PATCH] Fix client common to be public (#58) --- iwf/client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/iwf/client.go b/iwf/client.go index d655259..7a57562 100644 --- a/iwf/client.go +++ b/iwf/client.go @@ -7,7 +7,7 @@ import ( // Client is a full-featured client type Client interface { - clientCommon + ClientCommon // StartWorkflow starts a workflow execution // workflowId is the required identifier for the workflow execution(see Cadence/Temporal for more details about WorkflowId uniqueness) // timeoutSecs is required as the workflow execution timeout in seconds @@ -41,8 +41,8 @@ type Client interface { InvokeRPC(ctx context.Context, workflowId, workflowRunId string, rpc RPC, input interface{}, outputPtr interface{}) error } -// clientCommon is the common APIs between Client and UnregisteredClient -type clientCommon interface { +// ClientCommon is the common APIs between Client and UnregisteredClient +type ClientCommon interface { // StopWorkflow stops a workflow execution. // workflowId is required, workflowRunId is optional and default to current runId of the workflowId // options is optional, default (when nil)to use Cancel as stopType @@ -79,7 +79,7 @@ type clientCommon interface { // UnregisteredClient is a client without workflow registry type UnregisteredClient interface { - clientCommon + ClientCommon // StartWorkflow starts a workflow execution // startStateId is the first stateId to start // workflowId is the required identifier for the workflow execution(see Cadence/Temporal for more details about WorkflowId uniqueness)