summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
authorAkash Srivastava <akashsrivastava4927@gmail.com>2018-10-10 18:53:36 +0530
committerJesse Hallam <jesse.hallam@gmail.com>2018-10-10 09:23:36 -0400
commitbd04d7f75698c7b68434199208dc469021b823c2 (patch)
tree9ff5c93919ff1780dbab140877a19a31f6fda5a2 /plugin/api.go
parentbffcccf99de8a8f3c68cff9e39d2847f0996b67b (diff)
downloadchat-bd04d7f75698c7b68434199208dc469021b823c2.tar.gz
chat-bd04d7f75698c7b68434199208dc469021b823c2.tar.bz2
chat-bd04d7f75698c7b68434199208dc469021b823c2.zip
Add GetPostsForChannel method to plugin API (#9557)
Signed-off-by: Akash Srivastava <akash.srivastava@openebs.io>
Diffstat (limited to 'plugin/api.go')
-rw-r--r--plugin/api.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/api.go b/plugin/api.go
index 80364c2af..308067228 100644
--- a/plugin/api.go
+++ b/plugin/api.go
@@ -173,6 +173,9 @@ type API interface {
// GetPost gets a post.
GetPost(postId string) (*model.Post, *model.AppError)
+ // GetPostsForChannel gets a list of posts for a channel.
+ GetPostsForChannel(channelId string, page, perPage int) (*model.PostList, *model.AppError)
+
// UpdatePost updates a post.
UpdatePost(post *model.Post) (*model.Post, *model.AppError)