blob: 2289865845515b589de0afe4a869b829416ff6d9 (
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
|
package main
type SearchQuery struct {
Query string
MaxResults int64
Offset int64
}
type BaseResponse struct {
GlobalVars GlobalVars
}
type SearchResponse struct {
GlobalVars GlobalVars
Success bool
SearchResults []interface{}
NumResults int
TotalResults int64
MoreResults bool
OriginalQuery SearchQuery
Offset int64
LastOffset int64
NumPages int
}
type DocumentResponse struct {
GlobalVars GlobalVars
SearchResults interface{}
SummaryPDF string
}
type GlobalVars struct {
Name string
}
|