summaryrefslogtreecommitdiffstats
path: root/internal/models/sl.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/models/sl.go')
-rw-r--r--internal/models/sl.go18
1 files changed, 15 insertions, 3 deletions
diff --git a/internal/models/sl.go b/internal/models/sl.go
index f520450..845c022 100644
--- a/internal/models/sl.go
+++ b/internal/models/sl.go
@@ -13,12 +13,24 @@ type SLParams struct {
}
type SLResponse struct {
- MaxHits int `json:"max_hits"`
- Results interface{} `json:"results"`
- Credits struct {
+ MaxHits int `json:"max_hits"`
+ TotalScanned int `json:"total_scanned"`
+ TotalDedupe int `json:"total_dedupe"`
+ NumHits int `json:"num_hits"`
+ Hits []SLHit `json:"hits"`
+ Credits struct {
Remaining int `json:"remaining"`
Unlimited bool `json:"unlimited"`
} `json:"credits"`
Message string `json:"message,omitempty"`
Error string `json:"error,omitempty"`
}
+
+type SLHit struct {
+ IngestTimestamp string `json:"_ingest_timestamp"`
+ DocID string `json:"doc_id"`
+ Filename string `json:"filename"`
+ Password string `json:"password"`
+ URL string `json:"url"`
+ Username string `json:"username"`
+}