blob: 845c02285b66be2aa5a5b056f9330a0694e6e186 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
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"`
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 SLResponse 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"`
}
|