@@ -2,6 +2,7 @@ package shuffle
22
33import (
44 "encoding/xml"
5+ "sync"
56 "time"
67)
78
@@ -24,7 +25,7 @@ type LogRequest struct {
2425}
2526
2627type PipelineRequest struct {
27- ID string `json:"id"`
28+ ID string `json:"id"`
2829 Name string `json:"name"`
2930 Type string `json:"type"`
3031 Command string `json:"command"`
@@ -39,7 +40,7 @@ type PipelineRequest struct {
3940
4041type Pipeline struct {
4142 Name string `json:"name" datastore:"name"`
42- ID string `json:"id" datastore:"id"`
43+ ID string `json:"id" datastore:"id"`
4344 Type string `json:"type" datastore:"type"`
4445 Command string `json:"command" datastore:"command"`
4546 Environment string `json:"environment" datastore:"environment"`
@@ -1263,14 +1264,14 @@ type InputQuestion struct {
12631264}
12641265
12651266type FormControl struct {
1266- InputMarkdown string `json:"input_markdown" datastore:"input_markdown,noindex"`
1267- OutputYields []string `json:"output_yields" datastore:"output_yields"` // Defines the nodes that will YIELD their output to the frontend during execution
1267+ InputMarkdown string `json:"input_markdown" datastore:"input_markdown,noindex"`
1268+ OutputYields []string `json:"output_yields" datastore:"output_yields"` // Defines the nodes that will YIELD their output to the frontend during execution
12681269
12691270 FormWidth int64 `json:"form_width" datastore:"form_width"`
12701271}
12711272
12721273type Workflow struct {
1273- WorkflowAsCode bool `json:"workflow_as_code" datastore:"workflow_as_code"`
1274+ WorkflowAsCode bool `json:"workflow_as_code" datastore:"workflow_as_code"`
12741275 Actions []Action `json:"actions" datastore:"actions,noindex"`
12751276 Branches []Branch `json:"branches" datastore:"branches,noindex"`
12761277 VisualBranches []Branch `json:"visual_branches" datastore:"visual_branches,noindex"`
@@ -4169,3 +4170,9 @@ type RequestResponse struct {
41694170 Reason string `json:"reason"`
41704171 Details string `json:"details"`
41714172}
4173+
4174+ type TimeWindow struct {
4175+ Duration time.Duration
4176+ Events []time.Time
4177+ mu sync.Mutex
4178+ }
0 commit comments