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"` }