diff options
author | Christopher Speller <crspeller@gmail.com> | 2018-09-26 07:27:04 -0700 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2018-09-26 10:27:04 -0400 |
commit | 37e00ef916af9a5aeae760a01fa0a0cf8ca93637 (patch) | |
tree | 280c92b115a4614ee74ed4bb0efcaefe9cc8454f /model/post.go | |
parent | bfec808e53772fc79860412cd11c77ca1629739f (diff) | |
download | chat-37e00ef916af9a5aeae760a01fa0a0cf8ca93637.tar.gz chat-37e00ef916af9a5aeae760a01fa0a0cf8ca93637.tar.bz2 chat-37e00ef916af9a5aeae760a01fa0a0cf8ca93637.zip |
Adding paging to elasticsearch API. (#9425)
Diffstat (limited to 'model/post.go')
-rw-r--r-- | model/post.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/model/post.go b/model/post.go index 1f89cb419..5d2438fc4 100644 --- a/model/post.go +++ b/model/post.go @@ -97,9 +97,12 @@ type PostPatch struct { } type SearchParameter struct { - Terms *string `json:"terms"` - IsOrSearch *bool `json:"is_or_search"` - TimeZoneOffset *int `json:"time_zone_offset"` + Terms *string `json:"terms"` + IsOrSearch *bool `json:"is_or_search"` + TimeZoneOffset *int `json:"time_zone_offset"` + Page *int `json:"page"` + PerPage *int `json:"per_page"` + IncludeDeletedChannels *bool `json:"include_deleted_channels"` } func (o *PostPatch) WithRewrittenImageURLs(f func(string) string) *PostPatch { |