2021-09-01 22:38:56 +08:00
|
|
|
//go:build wireinject
|
2021-08-25 21:11:22 +08:00
|
|
|
// +build wireinject
|
|
|
|
|
2023-09-01 20:09:54 +08:00
|
|
|
// This file should contain wire sets used by both OSS and Enterprise builds.
|
|
|
|
// Use wireext_oss.go and wireext_enterprise.go for sets that are specific to
|
|
|
|
// the respective builds.
|
2021-08-25 21:11:22 +08:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/google/wire"
|
|
|
|
sdkhttpclient "github.com/grafana/grafana-plugin-sdk-go/backend/httpclient"
|
2023-03-02 01:42:53 +08:00
|
|
|
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/api"
|
2022-04-06 10:56:17 +08:00
|
|
|
"github.com/grafana/grafana/pkg/api/avatar"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/api/routing"
|
|
|
|
"github.com/grafana/grafana/pkg/bus"
|
2022-04-15 02:54:35 +08:00
|
|
|
"github.com/grafana/grafana/pkg/cuectx"
|
2021-11-10 18:52:16 +08:00
|
|
|
"github.com/grafana/grafana/pkg/expr"
|
2022-10-19 21:02:15 +08:00
|
|
|
"github.com/grafana/grafana/pkg/infra/db"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/infra/httpclient"
|
|
|
|
"github.com/grafana/grafana/pkg/infra/httpclient/httpclientprovider"
|
2021-08-31 23:05:45 +08:00
|
|
|
"github.com/grafana/grafana/pkg/infra/kvstore"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/infra/localcache"
|
|
|
|
"github.com/grafana/grafana/pkg/infra/metrics"
|
|
|
|
"github.com/grafana/grafana/pkg/infra/remotecache"
|
|
|
|
"github.com/grafana/grafana/pkg/infra/serverlock"
|
|
|
|
"github.com/grafana/grafana/pkg/infra/tracing"
|
|
|
|
"github.com/grafana/grafana/pkg/infra/usagestats"
|
2021-09-22 02:50:37 +08:00
|
|
|
uss "github.com/grafana/grafana/pkg/infra/usagestats/service"
|
2022-04-08 19:41:26 +08:00
|
|
|
"github.com/grafana/grafana/pkg/infra/usagestats/statscollector"
|
2023-03-24 01:19:19 +08:00
|
|
|
"github.com/grafana/grafana/pkg/infra/usagestats/validator"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/login/social"
|
2022-06-02 21:52:30 +08:00
|
|
|
"github.com/grafana/grafana/pkg/middleware/csrf"
|
2023-03-31 21:38:09 +08:00
|
|
|
"github.com/grafana/grafana/pkg/middleware/loggermw"
|
2022-08-30 23:30:43 +08:00
|
|
|
pluginDashboards "github.com/grafana/grafana/pkg/plugins/manager/dashboards"
|
Reconcile coremodels, entities, objects under new kind framework (#56492)
* Update thema to latest
* Deal with s/Library/*Runtime/
* Commit new, working results of codegen
* We like pointers now
* Always take runtime arg for NewBase()
* Sketchy handwavy pass at entity meta framework
* Little nibbles
* Update pkg/framework/coremodel/entityframework.cue
Co-authored-by: Artur Wierzbicki <wierzbicki.artur.94@gmail.com>
* Move file into new framework location
* Introduce loaders, Go code
* Complete rename to kind
* Flesh out framework, add svg/dashboard examples
* Cruft removal
* Remove generated kind go files from gitignore
* Refine maturity concept, add SlotKind
* Update embed and go deps
* Export PrefixWithGrafanaCUE
* Make the loader actually work, holy crap
* Many small tweaks to type.cue
* Add Apache 2 licensing exceptions for kinds
* Add new kinds dir, start of generator
* Roll back to earlier oapi-codegen
* Introduce new grafana-specific CUE loaders
* Introduce new tidy code generators framework
* Catch up kind framework with tinkering
* Add slices for the generators
* Add write/verify step to main generator
* Many renames
* Split up kind framework cue files
* Use kind.Decl within generated kinds
* Create kind.SomeDecl wrapper type to cache lineages
* Better names again
* Get one generated implemented, hopefully
* Copy dashboard schema into new kind.cue
* Small fixes to make the initial gen work
* Put svg kind in its new home
* Add generated Go dashboard type
* More renames and cleanups
* Add base kind registry and generator
* Stop blacklisting *_gen.go files
This is not the Go best practice, anyway. All we actually want to ignore
for enterprise is generated wire files.
* Change codegen output directories
pkg/kind -> pkg/kinds
pkg/registry/kindreg -> pkg/registry/corekind
* Rename pkg/framework/kind to pkg/kindsys
* Add core structured kind generator
* Add plural and machine names to kind spec
* Copy playlist over to kind system
* Consolidate kindsys files
* Add raw kind generator
* Update CODEOWNERS for kind framework
* Touch up comments a bit
* More docs tweaks
* Remove generated types to reduce noise for review
* Split each generator into its own file
* Rename Slot kind to Composable kind
* Add handwavy types for customkind loading
* Guard against init calls to framework loader
* First pass at doc on extending the kind system
* Improve attribute example in docs
* Fix wire imports
* Add basic TS types generator
* Fix composable kind category def
* No need for a separate file with generate directive
* Catch dashboard schema up
* Rename generator types to something saner and generic
* Make version configurable in ts/go generators
* Add CommonMeta to ease property access
* Add kindsys prop indicating whether lineage is group
* Put all kind categories back in a single file
* Finish with kindsys group props
* Refactor maturity progression per discussion
- Replace "committed" with "merged"
- All kindcats can use all maturity levels, at least for now
* Convert ts veneer index generator to modular system
* Move over to new jennywrites framework
* Strip down old coremodel generator
* Use public version of jennywrites
* Pull latest thema
* Commit generated Go types
* Add header injection postprocessor
* Move sdboyer/jennywrites to grafana/codejen
* Tweak header output
* Remove dashboard and playlist coremodels
* Fix up backend dashboards devenv test
* Fix TS import patterns to new gen filename
* Update internal imports, remove coremodel registry
* Fix compilation errors, wire generation
* Export and replace the prefix dropper
* More Go struct and field name changes
* Last name fixes, hopefully
* Fix lint errors
* Last lint error
Co-authored-by: Artur Wierzbicki <wierzbicki.artur.94@gmail.com>
2022-11-11 04:36:40 +08:00
|
|
|
"github.com/grafana/grafana/pkg/registry/corekind"
|
2022-05-10 21:48:47 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/accesscontrol"
|
2022-09-06 00:15:47 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/accesscontrol/acimpl"
|
2022-05-10 21:48:47 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/accesscontrol/ossaccesscontrol"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/alerting"
|
2022-09-27 19:58:49 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/annotations"
|
|
|
|
"github.com/grafana/grafana/pkg/services/annotations/annotationsimpl"
|
2022-08-02 22:55:19 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/apikey/apikeyimpl"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/auth/jwt"
|
2022-12-02 22:10:03 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/authn/authnimpl"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/cleanup"
|
|
|
|
"github.com/grafana/grafana/pkg/services/contexthandler"
|
2022-07-25 22:19:07 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/correlations"
|
2022-01-28 17:28:33 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/dashboardimport"
|
|
|
|
dashboardimportservice "github.com/grafana/grafana/pkg/services/dashboardimport/service"
|
2022-02-16 21:15:44 +08:00
|
|
|
dashboardstore "github.com/grafana/grafana/pkg/services/dashboards/database"
|
2022-05-18 02:52:22 +08:00
|
|
|
dashboardservice "github.com/grafana/grafana/pkg/services/dashboards/service"
|
2021-09-01 19:05:15 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/dashboardsnapshots"
|
2022-06-15 01:41:29 +08:00
|
|
|
dashsnapstore "github.com/grafana/grafana/pkg/services/dashboardsnapshots/database"
|
|
|
|
dashsnapsvc "github.com/grafana/grafana/pkg/services/dashboardsnapshots/service"
|
2022-05-25 16:41:51 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/dashboardversion/dashverimpl"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/datasourceproxy"
|
2021-10-07 22:33:50 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/datasources"
|
2022-02-11 22:52:14 +08:00
|
|
|
datasourceservice "github.com/grafana/grafana/pkg/services/datasources/service"
|
2022-08-02 21:08:09 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/encryption"
|
|
|
|
encryptionservice "github.com/grafana/grafana/pkg/services/encryption/service"
|
2022-01-27 01:44:20 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/featuremgmt"
|
2023-03-08 00:22:30 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/folder"
|
2022-10-11 03:47:53 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/folder/folderimpl"
|
2022-09-27 04:25:34 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/grpcserver"
|
2022-10-05 04:31:02 +08:00
|
|
|
grpccontext "github.com/grafana/grafana/pkg/services/grpcserver/context"
|
|
|
|
"github.com/grafana/grafana/pkg/services/grpcserver/interceptors"
|
2022-03-03 22:05:47 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/guardian"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/hooks"
|
2023-02-08 16:32:59 +08:00
|
|
|
ldapapi "github.com/grafana/grafana/pkg/services/ldap/api"
|
2023-02-11 02:01:55 +08:00
|
|
|
ldapservice "github.com/grafana/grafana/pkg/services/ldap/service"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/libraryelements"
|
|
|
|
"github.com/grafana/grafana/pkg/services/librarypanels"
|
|
|
|
"github.com/grafana/grafana/pkg/services/live"
|
|
|
|
"github.com/grafana/grafana/pkg/services/live/pushhttp"
|
|
|
|
"github.com/grafana/grafana/pkg/services/login"
|
|
|
|
"github.com/grafana/grafana/pkg/services/login/authinfoservice"
|
2022-02-04 01:23:45 +08:00
|
|
|
authinfodatabase "github.com/grafana/grafana/pkg/services/login/authinfoservice/database"
|
2022-11-22 18:37:18 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/loginattempt"
|
2022-09-02 00:08:42 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/loginattempt/loginattemptimpl"
|
2022-09-23 04:04:48 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/navtree/navtreeimpl"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/ngalert"
|
2022-08-09 22:28:36 +08:00
|
|
|
ngimage "github.com/grafana/grafana/pkg/services/ngalert/image"
|
2021-08-25 21:11:22 +08:00
|
|
|
ngmetrics "github.com/grafana/grafana/pkg/services/ngalert/metrics"
|
2022-08-09 22:28:36 +08:00
|
|
|
ngstore "github.com/grafana/grafana/pkg/services/ngalert/store"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/notifications"
|
2023-05-25 21:38:30 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/oauthserver"
|
|
|
|
"github.com/grafana/grafana/pkg/services/oauthserver/oasimpl"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/oauthtoken"
|
2022-12-02 02:08:36 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/oauthtoken/oauthtokentest"
|
2022-06-28 20:32:25 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/org/orgimpl"
|
2022-09-27 19:58:49 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/playlist/playlistimpl"
|
2022-01-28 17:28:33 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/plugindashboards"
|
2022-03-11 01:38:04 +08:00
|
|
|
plugindashboardsservice "github.com/grafana/grafana/pkg/services/plugindashboards/service"
|
2022-12-02 02:08:36 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/pluginsintegration"
|
2022-04-14 20:22:00 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/preference/prefimpl"
|
2022-07-07 07:51:44 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/publicdashboards"
|
|
|
|
publicdashboardsApi "github.com/grafana/grafana/pkg/services/publicdashboards/api"
|
|
|
|
publicdashboardsStore "github.com/grafana/grafana/pkg/services/publicdashboards/database"
|
2023-04-12 01:36:50 +08:00
|
|
|
publicdashboardsmetric "github.com/grafana/grafana/pkg/services/publicdashboards/metric"
|
2022-07-07 07:51:44 +08:00
|
|
|
publicdashboardsService "github.com/grafana/grafana/pkg/services/publicdashboards/service"
|
2021-12-15 01:38:20 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/query"
|
2022-01-29 00:55:09 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/queryhistory"
|
2022-07-16 00:06:44 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/quota/quotaimpl"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/rendering"
|
|
|
|
"github.com/grafana/grafana/pkg/services/search"
|
2022-02-16 02:26:03 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/searchV2"
|
2021-10-01 20:39:57 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/secrets"
|
2021-10-12 22:08:07 +08:00
|
|
|
secretsDatabase "github.com/grafana/grafana/pkg/services/secrets/database"
|
2022-04-26 00:57:45 +08:00
|
|
|
secretsStore "github.com/grafana/grafana/pkg/services/secrets/kvstore"
|
2022-07-13 04:27:37 +08:00
|
|
|
secretsMigrations "github.com/grafana/grafana/pkg/services/secrets/kvstore/migrations"
|
2021-10-12 22:08:07 +08:00
|
|
|
secretsManager "github.com/grafana/grafana/pkg/services/secrets/manager"
|
2021-11-11 23:10:24 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/serviceaccounts"
|
|
|
|
serviceaccountsmanager "github.com/grafana/grafana/pkg/services/serviceaccounts/manager"
|
2022-12-13 21:56:10 +08:00
|
|
|
serviceaccountsretriever "github.com/grafana/grafana/pkg/services/serviceaccounts/retriever"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/shorturls"
|
2023-01-12 17:13:47 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/shorturls/shorturlimpl"
|
2023-04-17 17:42:37 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/signingkeys"
|
|
|
|
"github.com/grafana/grafana/pkg/services/signingkeys/signingkeysimpl"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/sqlstore"
|
2023-01-25 22:58:54 +08:00
|
|
|
starApi "github.com/grafana/grafana/pkg/services/star/api"
|
2022-05-16 22:42:02 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/star/starimpl"
|
2022-12-01 01:11:07 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/stats/statsimpl"
|
2022-03-18 01:19:23 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/store"
|
2022-12-01 05:42:42 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/store/entity/httpentitystore"
|
|
|
|
"github.com/grafana/grafana/pkg/services/store/entity/sqlstash"
|
2022-10-09 00:05:46 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/store/kind"
|
2022-10-19 22:33:26 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/store/resolver"
|
2022-09-27 19:58:49 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/store/sanitizer"
|
2023-01-05 00:33:18 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/supportbundles"
|
2023-02-07 00:50:03 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/supportbundles/bundleregistry"
|
2023-01-05 00:33:18 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/supportbundles/supportbundlesimpl"
|
2022-09-21 20:04:01 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/tag"
|
|
|
|
"github.com/grafana/grafana/pkg/services/tag/tagimpl"
|
2022-09-20 18:14:00 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/team/teamimpl"
|
2022-09-20 17:29:17 +08:00
|
|
|
tempuser "github.com/grafana/grafana/pkg/services/temp_user"
|
2022-08-13 00:13:23 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/temp_user/tempuserimpl"
|
2021-11-01 17:53:33 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/updatechecker"
|
2022-06-28 20:32:25 +08:00
|
|
|
"github.com/grafana/grafana/pkg/services/user/userimpl"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/setting"
|
|
|
|
"github.com/grafana/grafana/pkg/tsdb/azuremonitor"
|
2023-07-06 20:45:47 +08:00
|
|
|
cloudmonitoring "github.com/grafana/grafana/pkg/tsdb/cloud-monitoring"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/tsdb/cloudwatch"
|
|
|
|
"github.com/grafana/grafana/pkg/tsdb/elasticsearch"
|
2023-06-07 11:09:29 +08:00
|
|
|
pyroscope "github.com/grafana/grafana/pkg/tsdb/grafana-pyroscope-datasource"
|
2021-09-10 22:44:47 +08:00
|
|
|
"github.com/grafana/grafana/pkg/tsdb/grafanads"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/tsdb/graphite"
|
|
|
|
"github.com/grafana/grafana/pkg/tsdb/influxdb"
|
2021-11-10 18:52:16 +08:00
|
|
|
"github.com/grafana/grafana/pkg/tsdb/legacydata"
|
|
|
|
legacydataservice "github.com/grafana/grafana/pkg/tsdb/legacydata/service"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/tsdb/loki"
|
2021-09-07 15:35:37 +08:00
|
|
|
"github.com/grafana/grafana/pkg/tsdb/mssql"
|
|
|
|
"github.com/grafana/grafana/pkg/tsdb/mysql"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/tsdb/opentsdb"
|
2022-10-28 19:33:37 +08:00
|
|
|
"github.com/grafana/grafana/pkg/tsdb/parca"
|
2021-08-25 21:11:22 +08:00
|
|
|
"github.com/grafana/grafana/pkg/tsdb/postgres"
|
|
|
|
"github.com/grafana/grafana/pkg/tsdb/prometheus"
|
|
|
|
"github.com/grafana/grafana/pkg/tsdb/tempo"
|
|
|
|
"github.com/grafana/grafana/pkg/tsdb/testdatasource"
|
|
|
|
)
|
|
|
|
|
|
|
|
var wireBasicSet = wire.NewSet(
|
2021-11-10 18:52:16 +08:00
|
|
|
legacydataservice.ProvideService,
|
|
|
|
wire.Bind(new(legacydata.RequestHandler), new(*legacydataservice.Service)),
|
2022-09-19 15:54:37 +08:00
|
|
|
annotationsimpl.ProvideService,
|
|
|
|
wire.Bind(new(annotations.Repository), new(*annotationsimpl.RepositoryImpl)),
|
2022-08-03 23:17:26 +08:00
|
|
|
alerting.ProvideAlertStore,
|
2021-08-25 21:11:22 +08:00
|
|
|
alerting.ProvideAlertEngine,
|
|
|
|
wire.Bind(new(alerting.UsageStatsQuerier), new(*alerting.AlertEngine)),
|
|
|
|
New,
|
|
|
|
api.ProvideHTTPServer,
|
2021-12-15 01:38:20 +08:00
|
|
|
query.ProvideService,
|
2023-03-17 02:39:17 +08:00
|
|
|
wire.Bind(new(query.Service), new(*query.ServiceImpl)),
|
2021-08-25 21:11:22 +08:00
|
|
|
bus.ProvideBus,
|
|
|
|
wire.Bind(new(bus.Bus), new(*bus.InProcBus)),
|
|
|
|
rendering.ProvideService,
|
|
|
|
wire.Bind(new(rendering.Service), new(*rendering.RenderingService)),
|
|
|
|
routing.ProvideRegister,
|
|
|
|
wire.Bind(new(routing.RouteRegister), new(*routing.RouteRegisterImpl)),
|
|
|
|
hooks.ProvideService,
|
2021-08-31 23:05:45 +08:00
|
|
|
kvstore.ProvideService,
|
2021-08-25 21:11:22 +08:00
|
|
|
localcache.ProvideService,
|
2023-02-07 00:50:03 +08:00
|
|
|
bundleregistry.ProvideService,
|
|
|
|
wire.Bind(new(supportbundles.Service), new(*bundleregistry.Service)),
|
2022-01-31 23:06:16 +08:00
|
|
|
updatechecker.ProvideGrafanaService,
|
|
|
|
updatechecker.ProvidePluginsService,
|
2021-09-22 02:50:37 +08:00
|
|
|
uss.ProvideService,
|
|
|
|
wire.Bind(new(usagestats.Service), new(*uss.UsageStats)),
|
2023-03-24 01:19:19 +08:00
|
|
|
validator.ProvideService,
|
2022-12-02 02:08:36 +08:00
|
|
|
pluginsintegration.WireSet,
|
2022-08-30 23:30:43 +08:00
|
|
|
pluginDashboards.ProvideFileStoreManager,
|
|
|
|
wire.Bind(new(pluginDashboards.FileStore), new(*pluginDashboards.FileStoreManager)),
|
2021-08-25 21:11:22 +08:00
|
|
|
cloudwatch.ProvideService,
|
|
|
|
cloudmonitoring.ProvideService,
|
|
|
|
azuremonitor.ProvideService,
|
|
|
|
postgres.ProvideService,
|
2021-09-07 15:35:37 +08:00
|
|
|
mysql.ProvideService,
|
|
|
|
mssql.ProvideService,
|
2022-04-27 16:29:39 +08:00
|
|
|
store.ProvideEntityEventsService,
|
2021-08-25 21:11:22 +08:00
|
|
|
httpclientprovider.New,
|
|
|
|
wire.Bind(new(httpclient.Provider), new(*sdkhttpclient.Provider)),
|
|
|
|
serverlock.ProvideService,
|
2022-09-22 20:27:48 +08:00
|
|
|
annotationsimpl.ProvideCleanupService,
|
|
|
|
wire.Bind(new(annotations.Cleaner), new(*annotationsimpl.CleanupServiceImpl)),
|
2021-08-25 21:11:22 +08:00
|
|
|
cleanup.ProvideService,
|
2023-01-12 17:13:47 +08:00
|
|
|
shorturlimpl.ProvideService,
|
|
|
|
wire.Bind(new(shorturls.Service), new(*shorturlimpl.ShortURLService)),
|
2022-01-29 00:55:09 +08:00
|
|
|
queryhistory.ProvideService,
|
|
|
|
wire.Bind(new(queryhistory.Service), new(*queryhistory.QueryHistoryService)),
|
2022-07-25 22:19:07 +08:00
|
|
|
correlations.ProvideService,
|
|
|
|
wire.Bind(new(correlations.Service), new(*correlations.CorrelationsService)),
|
2022-07-16 00:06:44 +08:00
|
|
|
quotaimpl.ProvideService,
|
2021-08-25 21:11:22 +08:00
|
|
|
remotecache.ProvideService,
|
2023-02-21 23:21:18 +08:00
|
|
|
wire.Bind(new(remotecache.CacheStorage), new(*remotecache.RemoteCache)),
|
2021-08-25 21:11:22 +08:00
|
|
|
authinfoservice.ProvideAuthInfoService,
|
|
|
|
wire.Bind(new(login.AuthInfoService), new(*authinfoservice.Implementation)),
|
2022-02-04 01:23:45 +08:00
|
|
|
authinfodatabase.ProvideAuthInfoStore,
|
2021-08-25 21:11:22 +08:00
|
|
|
datasourceproxy.ProvideService,
|
|
|
|
search.ProvideService,
|
2022-02-16 02:26:03 +08:00
|
|
|
searchV2.ProvideService,
|
2022-09-23 07:02:09 +08:00
|
|
|
searchV2.ProvideSearchHTTPService,
|
2022-03-18 01:19:23 +08:00
|
|
|
store.ProvideService,
|
2022-11-24 22:15:32 +08:00
|
|
|
store.ProvideSystemUsersService,
|
2021-08-25 21:11:22 +08:00
|
|
|
live.ProvideService,
|
|
|
|
pushhttp.ProvideService,
|
|
|
|
contexthandler.ProvideService,
|
2023-02-11 02:01:55 +08:00
|
|
|
ldapservice.ProvideService,
|
|
|
|
wire.Bind(new(ldapservice.LDAP), new(*ldapservice.LDAPImpl)),
|
2021-08-25 21:11:22 +08:00
|
|
|
jwt.ProvideService,
|
2023-01-21 02:11:06 +08:00
|
|
|
wire.Bind(new(jwt.JWTService), new(*jwt.AuthService)),
|
2022-08-09 22:28:36 +08:00
|
|
|
ngstore.ProvideDBStore,
|
|
|
|
ngimage.ProvideDeleteExpiredService,
|
2021-08-25 21:11:22 +08:00
|
|
|
ngalert.ProvideService,
|
|
|
|
librarypanels.ProvideService,
|
|
|
|
wire.Bind(new(librarypanels.Service), new(*librarypanels.LibraryPanelService)),
|
|
|
|
libraryelements.ProvideService,
|
|
|
|
wire.Bind(new(libraryelements.Service), new(*libraryelements.LibraryElementService)),
|
|
|
|
notifications.ProvideService,
|
2022-01-14 05:19:15 +08:00
|
|
|
notifications.ProvideSmtpService,
|
2021-08-25 21:11:22 +08:00
|
|
|
tracing.ProvideService,
|
|
|
|
metrics.ProvideService,
|
|
|
|
testdatasource.ProvideService,
|
2023-02-08 16:32:59 +08:00
|
|
|
ldapapi.ProvideService,
|
2021-08-25 21:11:22 +08:00
|
|
|
opentsdb.ProvideService,
|
|
|
|
social.ProvideService,
|
|
|
|
influxdb.ProvideService,
|
|
|
|
wire.Bind(new(social.Service), new(*social.SocialService)),
|
|
|
|
tempo.ProvideService,
|
|
|
|
loki.ProvideService,
|
|
|
|
graphite.ProvideService,
|
|
|
|
prometheus.ProvideService,
|
|
|
|
elasticsearch.ProvideService,
|
2023-06-07 11:09:29 +08:00
|
|
|
pyroscope.ProvideService,
|
2022-10-28 19:33:37 +08:00
|
|
|
parca.ProvideService,
|
2023-08-21 21:26:49 +08:00
|
|
|
datasourceservice.ProvideCacheService,
|
|
|
|
wire.Bind(new(datasources.CacheService), new(*datasourceservice.CacheServiceImpl)),
|
2022-08-02 21:08:09 +08:00
|
|
|
encryptionservice.ProvideEncryptionService,
|
|
|
|
wire.Bind(new(encryption.Internal), new(*encryptionservice.Service)),
|
2021-10-12 22:08:07 +08:00
|
|
|
secretsManager.ProvideSecretsService,
|
|
|
|
wire.Bind(new(secrets.Service), new(*secretsManager.SecretsService)),
|
|
|
|
secretsDatabase.ProvideSecretsStore,
|
|
|
|
wire.Bind(new(secrets.Store), new(*secretsDatabase.SecretsStoreImpl)),
|
2021-09-10 22:44:47 +08:00
|
|
|
grafanads.ProvideService,
|
2022-06-15 01:41:29 +08:00
|
|
|
wire.Bind(new(dashboardsnapshots.Store), new(*dashsnapstore.DashboardSnapshotStore)),
|
|
|
|
dashsnapstore.ProvideStore,
|
|
|
|
wire.Bind(new(dashboardsnapshots.Service), new(*dashsnapsvc.ServiceImpl)),
|
|
|
|
dashsnapsvc.ProvideService,
|
2022-02-11 22:52:14 +08:00
|
|
|
datasourceservice.ProvideService,
|
|
|
|
wire.Bind(new(datasources.DataSourceService), new(*datasourceservice.Service)),
|
2021-10-07 22:33:50 +08:00
|
|
|
alerting.ProvideService,
|
2022-12-13 21:56:10 +08:00
|
|
|
serviceaccountsretriever.ProvideService,
|
|
|
|
wire.Bind(new(serviceaccountsretriever.ServiceAccountRetriever), new(*serviceaccountsretriever.Service)),
|
2022-07-08 17:53:18 +08:00
|
|
|
ossaccesscontrol.ProvideServiceAccountPermissions,
|
|
|
|
wire.Bind(new(accesscontrol.ServiceAccountPermissionsService), new(*ossaccesscontrol.ServiceAccountPermissionsService)),
|
2021-11-11 23:10:24 +08:00
|
|
|
serviceaccountsmanager.ProvideServiceAccountsService,
|
|
|
|
wire.Bind(new(serviceaccounts.Service), new(*serviceaccountsmanager.ServiceAccountsService)),
|
2021-11-10 18:52:16 +08:00
|
|
|
expr.ProvideService,
|
2022-01-27 01:44:20 +08:00
|
|
|
featuremgmt.ProvideManagerService,
|
|
|
|
featuremgmt.ProvideToggles,
|
2023-03-09 03:37:45 +08:00
|
|
|
dashboardservice.ProvideDashboardServiceImpl,
|
|
|
|
dashboardservice.ProvideDashboardService,
|
|
|
|
dashboardservice.ProvideDashboardProvisioningService,
|
|
|
|
dashboardservice.ProvideDashboardPluginService,
|
2022-02-16 21:15:44 +08:00
|
|
|
dashboardstore.ProvideDashboardStore,
|
2022-10-11 03:47:53 +08:00
|
|
|
folderimpl.ProvideService,
|
2023-02-01 21:43:21 +08:00
|
|
|
folderimpl.ProvideDashboardFolderStore,
|
|
|
|
wire.Bind(new(folder.FolderStore), new(*folderimpl.DashboardFolderStoreImpl)),
|
2022-01-28 17:28:33 +08:00
|
|
|
dashboardimportservice.ProvideService,
|
|
|
|
wire.Bind(new(dashboardimport.Service), new(*dashboardimportservice.ImportDashboardService)),
|
2022-03-11 01:38:04 +08:00
|
|
|
plugindashboardsservice.ProvideService,
|
|
|
|
wire.Bind(new(plugindashboards.Service), new(*plugindashboardsservice.Service)),
|
|
|
|
plugindashboardsservice.ProvideDashboardUpdater,
|
2022-02-28 16:54:56 +08:00
|
|
|
alerting.ProvideDashAlertExtractorService,
|
|
|
|
wire.Bind(new(alerting.DashAlertExtractor), new(*alerting.DashAlertExtractorService)),
|
2022-03-03 22:05:47 +08:00
|
|
|
guardian.ProvideService,
|
2022-07-07 19:32:18 +08:00
|
|
|
sanitizer.ProvideService,
|
2022-04-26 00:57:45 +08:00
|
|
|
secretsStore.ProvideService,
|
2022-04-06 10:56:17 +08:00
|
|
|
avatar.ProvideAvatarCacheServer,
|
2022-04-08 19:41:26 +08:00
|
|
|
statscollector.ProvideService,
|
Reconcile coremodels, entities, objects under new kind framework (#56492)
* Update thema to latest
* Deal with s/Library/*Runtime/
* Commit new, working results of codegen
* We like pointers now
* Always take runtime arg for NewBase()
* Sketchy handwavy pass at entity meta framework
* Little nibbles
* Update pkg/framework/coremodel/entityframework.cue
Co-authored-by: Artur Wierzbicki <wierzbicki.artur.94@gmail.com>
* Move file into new framework location
* Introduce loaders, Go code
* Complete rename to kind
* Flesh out framework, add svg/dashboard examples
* Cruft removal
* Remove generated kind go files from gitignore
* Refine maturity concept, add SlotKind
* Update embed and go deps
* Export PrefixWithGrafanaCUE
* Make the loader actually work, holy crap
* Many small tweaks to type.cue
* Add Apache 2 licensing exceptions for kinds
* Add new kinds dir, start of generator
* Roll back to earlier oapi-codegen
* Introduce new grafana-specific CUE loaders
* Introduce new tidy code generators framework
* Catch up kind framework with tinkering
* Add slices for the generators
* Add write/verify step to main generator
* Many renames
* Split up kind framework cue files
* Use kind.Decl within generated kinds
* Create kind.SomeDecl wrapper type to cache lineages
* Better names again
* Get one generated implemented, hopefully
* Copy dashboard schema into new kind.cue
* Small fixes to make the initial gen work
* Put svg kind in its new home
* Add generated Go dashboard type
* More renames and cleanups
* Add base kind registry and generator
* Stop blacklisting *_gen.go files
This is not the Go best practice, anyway. All we actually want to ignore
for enterprise is generated wire files.
* Change codegen output directories
pkg/kind -> pkg/kinds
pkg/registry/kindreg -> pkg/registry/corekind
* Rename pkg/framework/kind to pkg/kindsys
* Add core structured kind generator
* Add plural and machine names to kind spec
* Copy playlist over to kind system
* Consolidate kindsys files
* Add raw kind generator
* Update CODEOWNERS for kind framework
* Touch up comments a bit
* More docs tweaks
* Remove generated types to reduce noise for review
* Split each generator into its own file
* Rename Slot kind to Composable kind
* Add handwavy types for customkind loading
* Guard against init calls to framework loader
* First pass at doc on extending the kind system
* Improve attribute example in docs
* Fix wire imports
* Add basic TS types generator
* Fix composable kind category def
* No need for a separate file with generate directive
* Catch dashboard schema up
* Rename generator types to something saner and generic
* Make version configurable in ts/go generators
* Add CommonMeta to ease property access
* Add kindsys prop indicating whether lineage is group
* Put all kind categories back in a single file
* Finish with kindsys group props
* Refactor maturity progression per discussion
- Replace "committed" with "merged"
- All kindcats can use all maturity levels, at least for now
* Convert ts veneer index generator to modular system
* Move over to new jennywrites framework
* Strip down old coremodel generator
* Use public version of jennywrites
* Pull latest thema
* Commit generated Go types
* Add header injection postprocessor
* Move sdboyer/jennywrites to grafana/codejen
* Tweak header output
* Remove dashboard and playlist coremodels
* Fix up backend dashboards devenv test
* Fix TS import patterns to new gen filename
* Update internal imports, remove coremodel registry
* Fix compilation errors, wire generation
* Export and replace the prefix dropper
* More Go struct and field name changes
* Last name fixes, hopefully
* Fix lint errors
* Last lint error
Co-authored-by: Artur Wierzbicki <wierzbicki.artur.94@gmail.com>
2022-11-11 04:36:40 +08:00
|
|
|
corekind.KindSet,
|
2022-10-11 16:45:07 +08:00
|
|
|
cuectx.GrafanaCUEContext,
|
|
|
|
cuectx.GrafanaThemaRuntime,
|
2022-06-02 21:52:30 +08:00
|
|
|
csrf.ProvideCSRFFilter,
|
2023-04-24 21:11:08 +08:00
|
|
|
wire.Bind(new(csrf.Service), new(*csrf.CSRF)),
|
2022-05-10 21:48:47 +08:00
|
|
|
ossaccesscontrol.ProvideTeamPermissions,
|
|
|
|
wire.Bind(new(accesscontrol.TeamPermissionsService), new(*ossaccesscontrol.TeamPermissionsService)),
|
|
|
|
ossaccesscontrol.ProvideFolderPermissions,
|
|
|
|
wire.Bind(new(accesscontrol.FolderPermissionsService), new(*ossaccesscontrol.FolderPermissionsService)),
|
|
|
|
ossaccesscontrol.ProvideDashboardPermissions,
|
|
|
|
wire.Bind(new(accesscontrol.DashboardPermissionsService), new(*ossaccesscontrol.DashboardPermissionsService)),
|
2022-05-16 22:42:02 +08:00
|
|
|
starimpl.ProvideService,
|
2022-07-18 17:26:35 +08:00
|
|
|
playlistimpl.ProvideService,
|
2022-08-02 22:55:19 +08:00
|
|
|
apikeyimpl.ProvideService,
|
2022-05-25 16:41:51 +08:00
|
|
|
dashverimpl.ProvideService,
|
2022-07-07 07:51:44 +08:00
|
|
|
publicdashboardsService.ProvideService,
|
|
|
|
wire.Bind(new(publicdashboards.Service), new(*publicdashboardsService.PublicDashboardServiceImpl)),
|
|
|
|
publicdashboardsStore.ProvideStore,
|
|
|
|
wire.Bind(new(publicdashboards.Store), new(*publicdashboardsStore.PublicDashboardStoreImpl)),
|
2023-04-12 01:36:50 +08:00
|
|
|
publicdashboardsmetric.ProvideService,
|
2022-07-07 07:51:44 +08:00
|
|
|
publicdashboardsApi.ProvideApi,
|
2023-01-25 22:58:54 +08:00
|
|
|
starApi.ProvideApi,
|
2022-06-28 20:32:25 +08:00
|
|
|
userimpl.ProvideService,
|
|
|
|
orgimpl.ProvideService,
|
2022-12-01 01:11:07 +08:00
|
|
|
statsimpl.ProvideService,
|
2022-10-05 04:31:02 +08:00
|
|
|
grpccontext.ProvideContextHandler,
|
2022-09-27 04:25:34 +08:00
|
|
|
grpcserver.ProvideService,
|
|
|
|
grpcserver.ProvideHealthService,
|
2022-09-29 02:00:46 +08:00
|
|
|
grpcserver.ProvideReflectionService,
|
2022-10-05 04:31:02 +08:00
|
|
|
interceptors.ProvideAuthenticator,
|
2022-11-05 05:30:22 +08:00
|
|
|
kind.ProvideService, // The registry of known kinds
|
2022-12-01 05:42:42 +08:00
|
|
|
sqlstash.ProvideSQLEntityServer,
|
|
|
|
resolver.ProvideEntityReferenceResolver,
|
|
|
|
httpentitystore.ProvideHTTPEntityStore,
|
2022-09-20 18:14:00 +08:00
|
|
|
teamimpl.ProvideService,
|
2022-08-13 00:13:23 +08:00
|
|
|
tempuserimpl.ProvideService,
|
2022-08-17 14:34:23 +08:00
|
|
|
loginattemptimpl.ProvideService,
|
2022-11-22 18:37:18 +08:00
|
|
|
wire.Bind(new(loginattempt.Service), new(*loginattemptimpl.Service)),
|
2022-08-26 05:04:44 +08:00
|
|
|
secretsMigrations.ProvideDataSourceMigrationService,
|
|
|
|
secretsMigrations.ProvideMigrateToPluginService,
|
|
|
|
secretsMigrations.ProvideMigrateFromPluginService,
|
2022-09-07 03:21:25 +08:00
|
|
|
secretsMigrations.ProvideSecretMigrationProvider,
|
|
|
|
wire.Bind(new(secretsMigrations.SecretMigrationProvider), new(*secretsMigrations.SecretMigrationProviderImpl)),
|
2022-09-06 00:15:47 +08:00
|
|
|
acimpl.ProvideAccessControl,
|
2022-09-23 04:04:48 +08:00
|
|
|
navtreeimpl.ProvideService,
|
2022-09-06 00:15:47 +08:00
|
|
|
wire.Bind(new(accesscontrol.AccessControl), new(*acimpl.AccessControl)),
|
2022-09-20 17:29:17 +08:00
|
|
|
wire.Bind(new(notifications.TempUserStore), new(tempuser.Service)),
|
2022-09-21 20:04:01 +08:00
|
|
|
tagimpl.ProvideService,
|
|
|
|
wire.Bind(new(tag.Service), new(*tagimpl.Service)),
|
2022-12-02 22:10:03 +08:00
|
|
|
authnimpl.ProvideService,
|
2023-09-06 19:10:07 +08:00
|
|
|
authnimpl.ProvideIdentitySynchronizer,
|
|
|
|
authnimpl.ProvideAuthnService,
|
2022-12-20 18:13:37 +08:00
|
|
|
supportbundlesimpl.ProvideService,
|
2023-05-25 21:38:30 +08:00
|
|
|
oasimpl.ProvideService,
|
|
|
|
wire.Bind(new(oauthserver.OAuth2Server), new(*oasimpl.OAuth2ServiceImpl)),
|
2023-03-31 21:38:09 +08:00
|
|
|
loggermw.Provide,
|
2023-04-17 17:42:37 +08:00
|
|
|
signingkeysimpl.ProvideEmbeddedSigningKeysService,
|
|
|
|
wire.Bind(new(signingkeys.Service), new(*signingkeysimpl.Service)),
|
2021-08-25 21:11:22 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
var wireSet = wire.NewSet(
|
|
|
|
wireBasicSet,
|
2023-02-28 23:12:23 +08:00
|
|
|
metrics.ProvideRegisterer,
|
2021-08-25 21:11:22 +08:00
|
|
|
sqlstore.ProvideService,
|
|
|
|
ngmetrics.ProvideService,
|
2022-01-26 23:42:40 +08:00
|
|
|
wire.Bind(new(notifications.Service), new(*notifications.NotificationService)),
|
|
|
|
wire.Bind(new(notifications.WebhookSender), new(*notifications.NotificationService)),
|
|
|
|
wire.Bind(new(notifications.EmailSender), new(*notifications.NotificationService)),
|
2022-03-22 22:43:53 +08:00
|
|
|
wire.Bind(new(db.DB), new(*sqlstore.SQLStore)),
|
2022-04-21 21:03:17 +08:00
|
|
|
prefimpl.ProvideService,
|
2022-12-02 02:08:36 +08:00
|
|
|
oauthtoken.ProvideService,
|
|
|
|
wire.Bind(new(oauthtoken.OAuthTokenService), new(*oauthtoken.Service)),
|
2021-08-25 21:11:22 +08:00
|
|
|
)
|
|
|
|
|
2023-03-17 23:36:39 +08:00
|
|
|
var wireCLISet = wire.NewSet(
|
|
|
|
NewRunner,
|
|
|
|
wireBasicSet,
|
|
|
|
sqlstore.ProvideService,
|
|
|
|
ngmetrics.ProvideService,
|
|
|
|
wire.Bind(new(notifications.Service), new(*notifications.NotificationService)),
|
|
|
|
wire.Bind(new(notifications.WebhookSender), new(*notifications.NotificationService)),
|
|
|
|
wire.Bind(new(notifications.EmailSender), new(*notifications.NotificationService)),
|
|
|
|
wire.Bind(new(db.DB), new(*sqlstore.SQLStore)),
|
|
|
|
prefimpl.ProvideService,
|
|
|
|
oauthtoken.ProvideService,
|
|
|
|
wire.Bind(new(oauthtoken.OAuthTokenService), new(*oauthtoken.Service)),
|
|
|
|
)
|
|
|
|
|
2021-08-25 21:11:22 +08:00
|
|
|
var wireTestSet = wire.NewSet(
|
|
|
|
wireBasicSet,
|
|
|
|
ProvideTestEnv,
|
2023-02-28 23:12:23 +08:00
|
|
|
metrics.ProvideRegistererForTest,
|
2021-08-25 21:11:22 +08:00
|
|
|
sqlstore.ProvideServiceForTests,
|
|
|
|
ngmetrics.ProvideServiceForTest,
|
2022-01-26 23:42:40 +08:00
|
|
|
notifications.MockNotificationService,
|
|
|
|
wire.Bind(new(notifications.Service), new(*notifications.NotificationServiceMock)),
|
|
|
|
wire.Bind(new(notifications.WebhookSender), new(*notifications.NotificationServiceMock)),
|
|
|
|
wire.Bind(new(notifications.EmailSender), new(*notifications.NotificationServiceMock)),
|
2022-04-21 21:03:17 +08:00
|
|
|
wire.Bind(new(db.DB), new(*sqlstore.SQLStore)),
|
|
|
|
prefimpl.ProvideService,
|
2022-12-02 02:08:36 +08:00
|
|
|
oauthtoken.ProvideService,
|
|
|
|
oauthtokentest.ProvideService,
|
|
|
|
wire.Bind(new(oauthtoken.OAuthTokenService), new(*oauthtokentest.Service)),
|
2021-08-25 21:11:22 +08:00
|
|
|
)
|
|
|
|
|
2023-09-01 20:09:54 +08:00
|
|
|
func Initialize(cfg *setting.Cfg, opts Options, apiOpts api.ServerOptions) (*Server, error) {
|
2021-08-25 21:11:22 +08:00
|
|
|
wire.Build(wireExtsSet)
|
|
|
|
return &Server{}, nil
|
|
|
|
}
|
|
|
|
|
2023-09-01 20:09:54 +08:00
|
|
|
func InitializeForTest(cfg *setting.Cfg, opts Options, apiOpts api.ServerOptions) (*TestEnv, error) {
|
2021-08-25 21:11:22 +08:00
|
|
|
wire.Build(wireExtsTestSet)
|
|
|
|
return &TestEnv{Server: &Server{}, SQLStore: &sqlstore.SQLStore{}}, nil
|
|
|
|
}
|
2023-03-17 23:36:39 +08:00
|
|
|
|
2023-09-01 20:09:54 +08:00
|
|
|
func InitializeForCLI(cfg *setting.Cfg) (Runner, error) {
|
2023-03-17 23:36:39 +08:00
|
|
|
wire.Build(wireExtsCLISet)
|
|
|
|
return Runner{}, nil
|
|
|
|
}
|
2023-09-01 20:09:54 +08:00
|
|
|
|
|
|
|
// InitializeForCLITarget is a simplified set of dependencies for the CLI, used
|
|
|
|
// by the server target subcommand to launch specific dskit modules.
|
|
|
|
func InitializeForCLITarget(cfg *setting.Cfg) (ModuleRunner, error) {
|
|
|
|
wire.Build(wireExtsBaseCLISet)
|
|
|
|
return ModuleRunner{}, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// InitializeModuleServer is a simplified set of dependencies for the CLI,
|
|
|
|
// suitable for running background services and targeting dskit modules.
|
|
|
|
func InitializeModuleServer(cfg *setting.Cfg, opts Options, apiOpts api.ServerOptions) (*ModuleServer, error) {
|
|
|
|
wire.Build(wireExtsModuleServerSet)
|
|
|
|
return &ModuleServer{}, nil
|
|
|
|
}
|