summaryrefslogtreecommitdiff
path: root/definitions.go
diff options
context:
space:
mode:
Diffstat (limited to 'definitions.go')
-rw-r--r--definitions.go34
1 files changed, 34 insertions, 0 deletions
diff --git a/definitions.go b/definitions.go
new file mode 100644
index 0000000..2289865
--- /dev/null
+++ b/definitions.go
@@ -0,0 +1,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
+}