remove jobs.Srv and other jobs-related globals (#7535)

Этот коммит содержится в:
Chris
2017-09-29 04:29:29 -05:00
коммит произвёл George Goldberg
родитель cb33179998
Коммит 4e79d2d4d0
16 изменённых файлов: 140 добавлений и 132 удалений

Просмотреть файл

@@ -11,13 +11,3 @@ type DataRetentionInterface interface {
MakeWorker() model.Worker
MakeScheduler() model.Scheduler
}
var theDataRetentionInterface DataRetentionInterface
func RegisterDataRetentionInterface(newInterface DataRetentionInterface) {
theDataRetentionInterface = newInterface
}
func GetDataRetentionInterface() DataRetentionInterface {
return theDataRetentionInterface
}

Просмотреть файл

@@ -11,27 +11,7 @@ type ElasticsearchIndexerInterface interface {
MakeWorker() model.Worker
}
var theElasticsearchIndexerInterface ElasticsearchIndexerInterface
func RegisterElasticsearchIndexerInterface(newInterface ElasticsearchIndexerInterface) {
theElasticsearchIndexerInterface = newInterface
}
func GetElasticsearchIndexerInterface() ElasticsearchIndexerInterface {
return theElasticsearchIndexerInterface
}
type ElasticsearchAggregatorInterface interface {
MakeWorker() model.Worker
MakeScheduler() model.Scheduler
}
var theElasticsearchAggregatorInterface ElasticsearchAggregatorInterface
func RegisterElasticsearchAggregatorInterface(newInterface ElasticsearchAggregatorInterface) {
theElasticsearchAggregatorInterface = newInterface
}
func GetElasticsearchAggregatorInterface() ElasticsearchAggregatorInterface {
return theElasticsearchAggregatorInterface
}

Просмотреть файл

@@ -11,13 +11,3 @@ type LdapSyncInterface interface {
MakeWorker() model.Worker
MakeScheduler() model.Scheduler
}
var theLdapSyncInterface LdapSyncInterface
func RegisterLdapSyncInterface(newInterface LdapSyncInterface) {
theLdapSyncInterface = newInterface
}
func GetLdapSyncInterface() LdapSyncInterface {
return theLdapSyncInterface
}