From db2f6cf0766543b6d9e9fb4ecd10947ce60b46b9 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Fri, 7 Jul 2017 15:36:17 +0100 Subject: PLT-6976: Elasticsearch capitalisation and tests. (#6839) * Fixes Elasticsearch to have consistent capitalisation everywhere across the code and UI (except the config file unfortunately). * Adds basic unit tests for Elastichsearch. * Adds a Elasticsearch docker image to the Makefile to enable testing the Elasticsearch feature. --- einterfaces/elasticsearch.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'einterfaces') 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 } -- cgit v1.2.3-1-g7c22