summaryrefslogtreecommitdiff
path: root/definitions.go
diff options
context:
space:
mode:
authornavanchauhan <navanchauhan@gmail.com>2023-01-18 02:41:10 -0700
committernavanchauhan <navanchauhan@gmail.com>2023-01-18 02:41:10 -0700
commit790ca38644b8c37c9feb7c433143a6b49b4f137e (patch)
treef809dc4ef486090648686a4c4769a08034a462d0 /definitions.go
parent46f32a7dc26dad46ffa974de56bf1541b8578e12 (diff)
added pagination and results per page
Diffstat (limited to 'definitions.go')
-rw-r--r--definitions.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/definitions.go b/definitions.go
index 2289865..6a7b9d1 100644
--- a/definitions.go
+++ b/definitions.go
@@ -3,7 +3,7 @@ package main
type SearchQuery struct {
Query string
MaxResults int64
- Offset int64
+ Page int64
}
type BaseResponse struct {
@@ -21,6 +21,11 @@ type SearchResponse struct {
Offset int64
LastOffset int64
NumPages int
+ MaxResults int64
+ CurPage int64
+ ShowPrev bool
+ PrevPage int64
+ NextPage int64
}
type DocumentResponse struct {