summaryrefslogtreecommitdiffstats
path: root/internal/models
diff options
context:
space:
mode:
authors <[email protected]>2025-12-20 02:45:32 -0500
committers <[email protected]>2025-12-20 02:45:32 -0500
commitbfd971bbc8d35685f18f4b9dd3a52f04f8b4f77f (patch)
tree2003679a51efaa7c1a43fe4f6da95530de8ce8aa /internal/models
parentc8ad5b9ef9fdc094c2cd974d6b9a65112089922b (diff)
downloaddborg-bfd971bbc8d35685f18f4b9dd3a52f04f8b4f77f.tar.gz
dborg-bfd971bbc8d35685f18f4b9dd3a52f04f8b4f77f.zip
feat: add moon logs search command and filename filter support for stealer logsv1.0.9
Diffstat (limited to 'internal/models')
-rw-r--r--internal/models/moon.go20
-rw-r--r--internal/models/sl.go1
2 files changed, 21 insertions, 0 deletions
diff --git a/internal/models/moon.go b/internal/models/moon.go
new file mode 100644
index 0000000..bedfc1c
--- /dev/null
+++ b/internal/models/moon.go
@@ -0,0 +1,20 @@
+package models
+
+type MoonParams struct {
+ Query string `json:"query"`
+ Filename string `json:"filename,omitempty"`
+ MaxHits int `json:"max_hits,omitempty"`
+ SortBy string `json:"sort_by,omitempty"`
+ IngestStartDate string `json:"ingest_start_date,omitempty"`
+ IngestEndDate string `json:"ingest_end_date,omitempty"`
+ PostedStartDate string `json:"posted_start_date,omitempty"`
+ PostedEndDate string `json:"posted_end_date,omitempty"`
+ Format string `json:"format,omitempty"`
+}
+
+type MoonResponse struct {
+ MaxHits int `json:"max_hits"`
+ Results interface{} `json:"results"`
+ Message string `json:"message,omitempty"`
+ Error string `json:"error,omitempty"`
+}
diff --git a/internal/models/sl.go b/internal/models/sl.go
index d55279f..f520450 100644
--- a/internal/models/sl.go
+++ b/internal/models/sl.go
@@ -2,6 +2,7 @@ package models
type SLParams struct {
Query string `json:"query"`
+ Filename string `json:"filename,omitempty"`
MaxHits int `json:"max_hits,omitempty"`
SortBy string `json:"sort_by,omitempty"`
IngestStartDate string `json:"ingest_start_date,omitempty"`