summaryrefslogtreecommitdiff
path: root/definitions.go
blob: c9c0c7c12d956dbf1c84c3d5b978d75d10647c52 (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
37
38
39
40
package main

type SearchQuery struct {
	Query      string
	MaxResults int64
	Page       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
	MaxResults    int64
	CurPage       int64
	ShowPrev      bool
	PrevPage      int64
	NextPage      int64
	Sort          string
}

type DocumentResponse struct {
	GlobalVars    GlobalVars
	SearchResults interface{}
	SummaryPDF    string
}

type GlobalVars struct {
	Name string
}