summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-11-03 11:34:52 -0500
committerChristopher Speller <crspeller@gmail.com>2015-11-03 11:34:52 -0500
commit188182a3a4499965dbbde254aed0ae5e60e71dc5 (patch)
treec8827517f2a65790b0f1e6fcaad5ff517710fcc2 /store/store.go
parent65acb1b201147ee20d3a07f97073ab7cd8c0efc2 (diff)
downloadchat-188182a3a4499965dbbde254aed0ae5e60e71dc5.tar.gz
chat-188182a3a4499965dbbde254aed0ae5e60e71dc5.tar.bz2
chat-188182a3a4499965dbbde254aed0ae5e60e71dc5.zip
Adding ability to fetch posts around a specifc post
Diffstat (limited to 'store/store.go')
-rw-r--r--store/store.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go
index 53a6e053b..ce4d90883 100644
--- a/store/store.go
+++ b/store/store.go
@@ -86,6 +86,8 @@ type PostStore interface {
Get(id string) StoreChannel
Delete(postId string, time int64) StoreChannel
GetPosts(channelId string, offset int, limit int) StoreChannel
+ GetPostsBefore(channelId string, postId string, numPosts int, offset int) StoreChannel
+ GetPostsAfter(channelId string, postId string, numPosts int, offset int) StoreChannel
GetPostsSince(channelId string, time int64) StoreChannel
GetEtag(channelId string) StoreChannel
Search(teamId string, userId string, params *model.SearchParams) StoreChannel