Füge Modelle für Flows, FlowRuns, TaskRuns, WorkPools, WorkQueues, Deployments, Variablen, FlowRunStates, Logs, und Blocks samt zugehöriger Unmarshal-Logik und Zeitfeld-Unterstützung hinzu; ergänze Tests für die FlowRunStates-Service-Methoden.
This commit is contained in:
15
pkg/models/task_workers.go
Normal file
15
pkg/models/task_workers.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
// TaskWorkerFilter represents filter criteria for querying task workers.
|
||||
type TaskWorkerFilter struct {
|
||||
TaskKeys []string `json:"task_keys"`
|
||||
}
|
||||
|
||||
// TaskWorkerResponse represents a task worker response.
|
||||
type TaskWorkerResponse struct {
|
||||
Identifier string `json:"identifier"`
|
||||
TaskKeys []string `json:"task_keys"`
|
||||
Timestamp time.Time `json:"timestamp"`
|
||||
}
|
||||
Reference in New Issue
Block a user