blob: d55279f2ef962d2da1a698c0ff80042daca3316d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package models
type SLParams struct {
Query string `json:"query"`
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"`
Results interface{} `json:"results"`
Credits struct {
Remaining int `json:"remaining"`
Unlimited bool `json:"unlimited"`
} `json:"credits"`
Message string `json:"message,omitempty"`
Error string `json:"error,omitempty"`
}
|