summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattermost/platform/einterfaces/jobs/elasticsearch.go
blob: 6d6dbe893f1b33a73175e7c15248c12a0d5d7a4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.

package jobs

import (
	"github.com/mattermost/platform/model"
)

type ElasticsearchIndexerInterface interface {
	MakeWorker() model.Worker
}

var theElasticsearchIndexerInterface ElasticsearchIndexerInterface

func RegisterElasticsearchIndexerInterface(newInterface ElasticsearchIndexerInterface) {
	theElasticsearchIndexerInterface = newInterface
}

func GetElasticsearchIndexerInterface() ElasticsearchIndexerInterface {
	return theElasticsearchIndexerInterface
}