-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
82 lines (70 loc) · 3.34 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
package workflow
import "net/http"
type InvokerContext struct {
WorkflowRunId string `json:"workflowRunId,omitempty"`
WorkflowUrl string `json:"workflowUrl,omitempty"`
WorkflowCreatedAt int64 `json:"workflowRunCreatedAt,omitempty"`
}
type FailureFunction struct {
MessageId string `json:"messageId"`
Url string `json:"url"`
State string `json:"state"`
FailHeaders http.Header `json:"failHeaders"`
FailStatus int `json:"failStatus"`
FailResponse string `json:"failResponse"`
DlqId string `json:"dlqId"`
}
type StepInfo struct {
StepId int64 `json:"stepId,omitempty"`
StepName string `json:"stepName,omitempty"`
StepType string `json:"stepType,omitempty"`
CallType string `json:"callType,omitempty"`
MessageId string `json:"messageId"`
Headers http.Header `json:"headers,omitempty"`
TargetStep int64 `json:"targetStep,omitempty"`
Out string `json:"out,omitempty"`
Concurrent int64 `json:"concurrent,omitempty"`
State string `json:"state,omitempty"`
CreatedAt int64 `json:"createdAt,omitempty"`
SleepUntil int64 `json:"sleepUntil,omitempty"`
SleepFor int64 `json:"sleepFor,omitempty"`
CallUrl string `json:"callUrl,omitempty"`
CallMethod string `json:"callMethod,omitempty"`
CallBody string `json:"callBody,omitempty"`
CallHeaders http.Header `json:"callHeaders,omitempty"`
CallResponseStatus int64 `json:"callResponseStatus,omitempty"`
CallResponseBody string `json:"callResponseBody,omitempty"`
CallResponseHeaders http.Header `json:"callResponseHeaders,omitempty"`
WaitEventId string `json:"waitEventId,omitempty"`
WaitTimeoutDuration string `json:"waitTimeoutDuration,omitempty"`
WaitTimeoutDeadline int64 `json:"waitTimeoutDeadline,omitempty"`
WaitTimeout bool `json:"waitTimeout,omitempty"`
InvokedWorkflowRunId string `json:"invokedWorkflowRunId,omitempty"`
InvokedWorkflowUrl string `json:"invokedWorkflowUrl,omitempty"`
InvokedWorkflowCreatedAt int64 `json:"invokedWorkflowCreatedAt,omitempty"`
InvokedWorkflowRunBody string `json:"invokedWorkflowRunBody,omitempty"`
InvokedWorkflowRunHeaders http.Header `json:"invokedWorkflowRunHeaders,omitempty"`
}
type GroupedSteps struct {
Steps []StepInfo `json:"steps"`
Type string `json:"type"`
}
type Run struct {
WorkflowRunId string `json:"workflowRunId"`
WorkflowUrl string `json:"workflowUrl"`
WorkflowState string `json:"workflowState"`
WorkflowRunCreatedAt int64 `json:"workflowRunCreatedAt"`
WorkflowRunCompletedAt int64 `json:"workflowRunCompletedAt,omitempty"`
GroupedSteps []GroupedSteps `json:"steps,omitempty"`
WorkflowRunResponse string `json:"workflowRunResponse,omitempty"`
Invoker *InvokerContext `json:"invoker,omitempty"`
FailureFunction *FailureFunction `json:"failureFunction,omitempty"`
}
type Waiter struct {
Url string `json:"url"`
Headers http.Header `json:"headers,omitempty"`
Deadline int64 `json:"deadline"`
TimeoutBody []byte `json:"timeoutBody,omitempty"`
TimeoutUrl string `json:"timeoutUrl,omitempty"`
TimeoutHeaders http.Header `json:"timeoutHeaders,omitempty"`
}