mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
25 lines
724 B
Go
25 lines
724 B
Go
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
package einterfaces
|
|
|
|
import "github.com/mattermost/platform/model"
|
|
|
|
type ElasticSearchInterface interface {
|
|
Start() *model.AppError
|
|
IndexPost(post *model.Post, teamId string)
|
|
SearchPosts(channels *model.ChannelList, searchParams []*model.SearchParams) ([]string, *model.AppError)
|
|
DeletePost(postId string)
|
|
TestConfig() *model.AppError
|
|
}
|
|
|
|
var theElasticSearchInterface ElasticSearchInterface
|
|
|
|
func RegisterElasticSearchInterface(newInterface ElasticSearchInterface) {
|
|
theElasticSearchInterface = newInterface
|
|
}
|
|
|
|
func GetElasticSearchInterface() ElasticSearchInterface {
|
|
return theElasticSearchInterface
|
|
}
|