Add optional config parameter to test elasticsearch endpoint. (#6877)

Этот коммит содержится в:
George Goldberg
2017-07-07 17:12:14 +01:00
коммит произвёл Joram Wilander
родитель db2f6cf076
Коммит 39b071bc0e
4 изменённых файлов: 22 добавлений и 4 удалений

Просмотреть файл

@@ -10,7 +10,7 @@ type ElasticsearchInterface interface {
IndexPost(post *model.Post, teamId string) *model.AppError
SearchPosts(channels *model.ChannelList, searchParams []*model.SearchParams) ([]string, *model.AppError)
DeletePost(postId string) *model.AppError
TestConfig() *model.AppError
TestConfig(cfg *model.Config) *model.AppError
}
var theElasticsearchInterface ElasticsearchInterface