From 99ed33396e5571cb6d40ccbdbc55ea29d30b394c Mon Sep 17 00:00:00 2001 From: artaasadi Date: Wed, 18 Dec 2024 14:03:25 +0100 Subject: [PATCH] fix: add task request --- pkg/tasks/types.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pkg/tasks/types.go diff --git a/pkg/tasks/types.go b/pkg/tasks/types.go new file mode 100644 index 0000000..0e6042e --- /dev/null +++ b/pkg/tasks/types.go @@ -0,0 +1,19 @@ +package tasks + +type TaskDefinition struct { + RunID uint `json:"run_id"` + Params map[string]string `json:"params"` +} + +type TaskRequest struct { + EsDeliverEndpoint string `json:"esDeliverEndpoint"` + IngestionPipelineEndpoint string `json:"ingestionPipelineEndpoint"` + UseOpenSearch bool `json:"useOpenSearch"` + + DescribeJob TaskDefinition `json:"describeJob"` + + ExtraInputs map[string][]string `json:"extraInputs"` +} + +type TaskResponse struct { +}