Skip to content

Commit

Permalink
Fix client common to be public (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
longquanzheng committed May 19, 2023
1 parent 9554e51 commit 35fed84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iwf/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 35fed84

Please sign in to comment.