|
|
|
@ -74,7 +74,7 @@ type CoreGrafanaScope struct { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func ProvideService(plugCtxProvider *plugincontext.Provider, cfg *setting.Cfg, routeRegister routing.RouteRegister, |
|
|
|
|
pluginStore plugins.Store, cacheService *localcache.CacheService, |
|
|
|
|
pluginStore plugins.Store, pluginClient plugins.Client, cacheService *localcache.CacheService, |
|
|
|
|
dataSourceCache datasources.CacheService, sqlStore db.DB, secretsService secrets.Service, |
|
|
|
|
usageStatsService usagestats.Service, queryDataService *query.Service, toggles featuremgmt.FeatureToggles, |
|
|
|
|
accessControl accesscontrol.AccessControl, dashboardService dashboards.DashboardService, annotationsRepo annotations.Repository, |
|
|
|
@ -85,6 +85,7 @@ func ProvideService(plugCtxProvider *plugincontext.Provider, cfg *setting.Cfg, r |
|
|
|
|
PluginContextProvider: plugCtxProvider, |
|
|
|
|
RouteRegister: routeRegister, |
|
|
|
|
pluginStore: pluginStore, |
|
|
|
|
pluginClient: pluginClient, |
|
|
|
|
CacheService: cacheService, |
|
|
|
|
DataSourceCache: dataSourceCache, |
|
|
|
|
SQLStore: sqlStore, |
|
|
|
@ -408,6 +409,7 @@ type GrafanaLive struct { |
|
|
|
|
SQLStore db.DB |
|
|
|
|
SecretsService secrets.Service |
|
|
|
|
pluginStore plugins.Store |
|
|
|
|
pluginClient plugins.Client |
|
|
|
|
queryDataService *query.Service |
|
|
|
|
orgService org.Service |
|
|
|
|
|
|
|
|
@ -460,7 +462,7 @@ func (g *GrafanaLive) getStreamPlugin(ctx context.Context, pluginID string) (bac |
|
|
|
|
return nil, fmt.Errorf("plugin not found: %s", pluginID) |
|
|
|
|
} |
|
|
|
|
if plugin.SupportsStreaming() { |
|
|
|
|
return plugin, nil |
|
|
|
|
return g.pluginClient, nil |
|
|
|
|
} |
|
|
|
|
return nil, fmt.Errorf("%s plugin does not implement StreamHandler: %#v", pluginID, plugin) |
|
|
|
|
} |
|
|
|
|