summaryrefslogtreecommitdiffstats
path: root/einterfaces
diff options
context:
space:
mode:
Diffstat (limited to 'einterfaces')
-rw-r--r--einterfaces/elasticsearch.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/einterfaces/elasticsearch.go b/einterfaces/elasticsearch.go
index af89b38a5..e4803aa88 100644
--- a/einterfaces/elasticsearch.go
+++ b/einterfaces/elasticsearch.go
@@ -5,20 +5,20 @@ package einterfaces
import "github.com/mattermost/platform/model"
-type ElasticSearchInterface interface {
+type ElasticsearchInterface interface {
Start() *model.AppError
- IndexPost(post *model.Post, teamId string)
+ IndexPost(post *model.Post, teamId string) *model.AppError
SearchPosts(channels *model.ChannelList, searchParams []*model.SearchParams) ([]string, *model.AppError)
- DeletePost(postId string)
+ DeletePost(postId string) *model.AppError
TestConfig() *model.AppError
}
-var theElasticSearchInterface ElasticSearchInterface
+var theElasticsearchInterface ElasticsearchInterface
-func RegisterElasticSearchInterface(newInterface ElasticSearchInterface) {
- theElasticSearchInterface = newInterface
+func RegisterElasticsearchInterface(newInterface ElasticsearchInterface) {
+ theElasticsearchInterface = newInterface
}
-func GetElasticSearchInterface() ElasticSearchInterface {
- return theElasticSearchInterface
+func GetElasticsearchInterface() ElasticsearchInterface {
+ return theElasticsearchInterface
}