11package workflows
22
3+ import "google.golang.org/protobuf/types/known/wrapperspb"
4+
35// StartRequest is the struct describing a start workflow request.
46type StartRequest struct {
5- InstanceID string `json:"instanceID"`
6- Options map [string ]string `json:"options"`
7- WorkflowName string `json:"workflowName"`
8- WorkflowInput [] byte `json:"workflowInput"`
7+ InstanceID * string `json:"instanceID"`
8+ Options map [string ]string `json:"options"`
9+ WorkflowName string `json:"workflowName"`
10+ WorkflowInput * wrapperspb. StringValue `json:"workflowInput"`
911}
1012
1113// GetRequest is the struct describing a get workflow state request.
@@ -16,14 +18,14 @@ type GetRequest struct {
1618// TerminateRequest is the struct describing a terminate workflow request.
1719type TerminateRequest struct {
1820 InstanceID string `json:"instanceID"`
19- Recursive bool `json:"recursive"`
21+ Recursive * bool `json:"recursive"`
2022}
2123
2224// RaiseEventRequest is the struct describing a raise workflow event request.
2325type RaiseEventRequest struct {
24- InstanceID string `json:"instanceID"`
25- EventName string `json:"name"`
26- EventData [] byte `json:"data"`
26+ InstanceID string `json:"instanceID"`
27+ EventName string `json:"name"`
28+ EventData * wrapperspb. StringValue `json:"data"`
2729}
2830
2931// PauseRequest is the struct describing a pause workflow request.
@@ -39,5 +41,5 @@ type ResumeRequest struct {
3941// PurgeRequest is the object describing a Purge request.
4042type PurgeRequest struct {
4143 InstanceID string `json:"instanceID"`
42- Recursive bool `json:"recursive"`
44+ Recursive * bool `json:"recursive"`
4345}
0 commit comments