diff options
author | George Goldberg <george@gberg.me> | 2017-07-11 09:09:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-11 09:09:15 +0100 |
commit | 83d53ea98cf5486f89bd4280b6b5ef835da4fd22 (patch) | |
tree | 1977949d599b3ce3b023f8699854d974be4d92a8 /einterfaces | |
parent | 0cc60abf6a33dca0d8317481f83d0eb2771f43a1 (diff) | |
download | chat-83d53ea98cf5486f89bd4280b6b5ef835da4fd22.tar.gz chat-83d53ea98cf5486f89bd4280b6b5ef835da4fd22.tar.bz2 chat-83d53ea98cf5486f89bd4280b6b5ef835da4fd22.zip |
PLT-6475: Elasticsearch Indexing Worker. (#6879)
Diffstat (limited to 'einterfaces')
-rw-r--r-- | einterfaces/jobs/elasticsearch.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/einterfaces/jobs/elasticsearch.go b/einterfaces/jobs/elasticsearch.go new file mode 100644 index 000000000..6d6dbe893 --- /dev/null +++ b/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 +} |