summaryrefslogtreecommitdiffstats
path: root/plugin/api.go
diff options
context:
space:
mode:
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)