unified: allow customising the ProvideUnifiedStorageClient (#100704)

* unified: allow customising the ProvideUnifiedStorageClient

* fix go mod
This commit is contained in:
Georges Chaudy
2025-02-14 11:26:51 +01:00
committed by GitHub
parent cf2a7687e0
commit 9d68c4f665
4 changed files with 27 additions and 23 deletions
-2
View File
@@ -158,7 +158,6 @@ import (
"github.com/grafana/grafana/pkg/services/user"
"github.com/grafana/grafana/pkg/services/user/userimpl"
"github.com/grafana/grafana/pkg/setting"
"github.com/grafana/grafana/pkg/storage/unified"
unifiedsearch "github.com/grafana/grafana/pkg/storage/unified/search"
"github.com/grafana/grafana/pkg/tsdb/azuremonitor"
cloudmonitoring "github.com/grafana/grafana/pkg/tsdb/cloud-monitoring"
@@ -214,7 +213,6 @@ var wireBasicSet = wire.NewSet(
mysql.ProvideService,
mssql.ProvideService,
store.ProvideEntityEventsService,
unified.ProvideUnifiedStorageClient,
httpclientprovider.New,
wire.Bind(new(httpclient.Provider), new(*sdkhttpclient.Provider)),
serverlock.ProvideService,
+3
View File
@@ -7,6 +7,7 @@ package server
import (
"github.com/google/wire"
"github.com/grafana/grafana/pkg/storage/unified"
search2 "github.com/grafana/grafana/pkg/storage/unified/search"
"github.com/grafana/grafana/pkg/infra/metrics"
@@ -116,6 +117,8 @@ var wireExtsBasicSet = wire.NewSet(
search2.ProvideDocumentBuilders,
sandbox.ProvideService,
wire.Bind(new(sandbox.Sandbox), new(*sandbox.Service)),
wire.Struct(new(unified.Options), "*"),
unified.ProvideUnifiedStorageClient,
)
var wireExtsSet = wire.NewSet(