diff options
| author | sinner <[email protected]> | 2026-01-19 06:02:10 -0500 |
|---|---|---|
| committer | sinner <[email protected]> | 2026-01-19 06:02:10 -0500 |
| commit | 85caa38c7b45766f044a016b88a410f75cb7469e (patch) | |
| tree | fd6be3a176b62097494ced076768d82179a4dbcf /internal/models | |
| parent | 542a09fd14761b4789ae89e16060b1b453e2e0f2 (diff) | |
| download | dborg-85caa38c7b45766f044a016b88a410f75cb7469e.tar.gz dborg-85caa38c7b45766f044a016b88a410f75cb7469e.zip | |
Diffstat (limited to 'internal/models')
| -rw-r--r-- | internal/models/sl.go | 18 |
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"` +} |
