mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-21 02:22:34 +01:00
23 lines
580 B
Go
23 lines
580 B
Go
// 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
|
|
}
|