diff options
| author | s <[email protected]> | 2025-12-20 02:45:32 -0500 |
|---|---|---|
| committer | s <[email protected]> | 2025-12-20 02:45:32 -0500 |
| commit | bfd971bbc8d35685f18f4b9dd3a52f04f8b4f77f (patch) | |
| tree | 2003679a51efaa7c1a43fe4f6da95530de8ce8aa /internal/models/moon.go | |
| parent | c8ad5b9ef9fdc094c2cd974d6b9a65112089922b (diff) | |
| download | dborg-1.0.9.tar.gz dborg-1.0.9.zip | |
feat: add moon logs search command and filename filter support for stealer logsv1.0.9
Diffstat (limited to 'internal/models/moon.go')
| -rw-r--r-- | internal/models/moon.go | 20 |
1 files changed, 20 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"` +} |
