1
1
package workflows
2
2
3
+ import "google.golang.org/protobuf/types/known/wrapperspb"
4
+
3
5
// StartRequest is the struct describing a start workflow request.
4
6
type 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"`
9
11
}
10
12
11
13
// GetRequest is the struct describing a get workflow state request.
@@ -16,14 +18,14 @@ type GetRequest struct {
16
18
// TerminateRequest is the struct describing a terminate workflow request.
17
19
type TerminateRequest struct {
18
20
InstanceID string `json:"instanceID"`
19
- Recursive bool `json:"recursive"`
21
+ Recursive * bool `json:"recursive"`
20
22
}
21
23
22
24
// RaiseEventRequest is the struct describing a raise workflow event request.
23
25
type 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"`
27
29
}
28
30
29
31
// PauseRequest is the struct describing a pause workflow request.
@@ -39,5 +41,5 @@ type ResumeRequest struct {
39
41
// PurgeRequest is the object describing a Purge request.
40
42
type PurgeRequest struct {
41
43
InstanceID string `json:"instanceID"`
42
- Recursive bool `json:"recursive"`
44
+ Recursive * bool `json:"recursive"`
43
45
}
0 commit comments