mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 06:22:13 +08:00
DataSources: Add datasource fetching + querying interface (#80749)
* first pass * separate oss + enterprise * tidy things up * add ctx * fix tests * use standalone svcs * mv plugin context provide * fix wire * fix import
This commit is contained in:
@ -9,11 +9,17 @@ import (
|
||||
"github.com/grafana/grafana/pkg/registry/apis/featuretoggle"
|
||||
"github.com/grafana/grafana/pkg/registry/apis/folders"
|
||||
"github.com/grafana/grafana/pkg/registry/apis/playlist"
|
||||
"github.com/grafana/grafana/pkg/services/pluginsintegration/plugincontext"
|
||||
)
|
||||
|
||||
var WireSet = wire.NewSet(
|
||||
ProvideRegistryServiceSink, // dummy background service that forces registration
|
||||
|
||||
wire.Bind(new(datasource.QuerierProvider), new(*datasource.DefaultQuerierProvider)),
|
||||
datasource.ProvideDefaultQuerierProvider,
|
||||
plugincontext.ProvideService,
|
||||
wire.Bind(new(datasource.PluginContextProvider), new(*plugincontext.Provider)),
|
||||
|
||||
// Each must be added here *and* in the ServiceSink above
|
||||
playlist.RegisterAPIService,
|
||||
dashboard.RegisterAPIService,
|
||||
|
Reference in New Issue
Block a user