github.com/keys-pub/mattermost-server@v4.10.10+incompatible/einterfaces/elasticsearch.go (about) 1 // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. 2 // See License.txt for license information. 3 4 package einterfaces 5 6 import ( 7 "time" 8 9 "github.com/mattermost/mattermost-server/model" 10 ) 11 12 type ElasticsearchInterface interface { 13 Start() *model.AppError 14 IndexPost(post *model.Post, teamId string) *model.AppError 15 SearchPosts(channels *model.ChannelList, searchParams []*model.SearchParams) ([]string, *model.AppError) 16 DeletePost(post *model.Post) *model.AppError 17 TestConfig(cfg *model.Config) *model.AppError 18 PurgeIndexes() *model.AppError 19 DataRetentionDeleteIndexes(cutoff time.Time) *model.AppError 20 }