summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattermost/platform/einterfaces/jobs/elasticsearch.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/mattermost/platform/einterfaces/jobs/elasticsearch.go')
-rw-r--r--vendor/github.com/mattermost/platform/einterfaces/jobs/elasticsearch.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/vendor/github.com/mattermost/platform/einterfaces/jobs/elasticsearch.go b/vendor/github.com/mattermost/platform/einterfaces/jobs/elasticsearch.go
new file mode 100644
index 00000000..6d6dbe89
--- /dev/null
+++ b/vendor/github.com/mattermost/platform/einterfaces/jobs/elasticsearch.go
@@ -0,0 +1,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
+}