mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 23:53:25 -06:00
26 lines
705 B
Go
26 lines
705 B
Go
|
package server
|
||
|
|
||
|
import (
|
||
|
"github.com/grafana/grafana/pkg/services/featuremgmt"
|
||
|
"github.com/grafana/grafana/pkg/setting"
|
||
|
)
|
||
|
|
||
|
// ModuleRunner is a simplified version of Runner that is used in the grafana
|
||
|
// server target command. It has a minimal set of dependencies required to
|
||
|
// launch background/dskit services.
|
||
|
type ModuleRunner struct {
|
||
|
Cfg *setting.Cfg
|
||
|
SettingsProvider setting.Provider
|
||
|
Features featuremgmt.FeatureToggles
|
||
|
}
|
||
|
|
||
|
func NewModuleRunner(cfg *setting.Cfg, settingsProvider setting.Provider,
|
||
|
features featuremgmt.FeatureToggles,
|
||
|
) ModuleRunner {
|
||
|
return ModuleRunner{
|
||
|
Cfg: cfg,
|
||
|
SettingsProvider: settingsProvider,
|
||
|
Features: features,
|
||
|
}
|
||
|
}
|