mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 12:52:08 +08:00

* introduce alerting notification app * move code as is and remove from old registry * update api server registration * update make file and remove unnecessary args, copy some useful make commands from dashboards * update codeowners * move constants inside module and remove dependency from grafana * add support for selectors to the app builder
34 lines
1.2 KiB
Go
34 lines
1.2 KiB
Go
package apiregistry
|
|
|
|
import (
|
|
dashboardinternal "github.com/grafana/grafana/pkg/registry/apis/dashboard"
|
|
"github.com/grafana/grafana/pkg/registry/apis/dashboardsnapshot"
|
|
"github.com/grafana/grafana/pkg/registry/apis/datasource"
|
|
"github.com/grafana/grafana/pkg/registry/apis/featuretoggle"
|
|
"github.com/grafana/grafana/pkg/registry/apis/folders"
|
|
"github.com/grafana/grafana/pkg/registry/apis/iam"
|
|
"github.com/grafana/grafana/pkg/registry/apis/provisioning"
|
|
"github.com/grafana/grafana/pkg/registry/apis/query"
|
|
"github.com/grafana/grafana/pkg/registry/apis/secret"
|
|
"github.com/grafana/grafana/pkg/registry/apis/userstorage"
|
|
)
|
|
|
|
type Service struct{}
|
|
|
|
// ProvideRegistryServiceSink is an entry point for each service that will force initialization
|
|
// and give each builder the chance to register itself with the main server
|
|
func ProvideRegistryServiceSink(
|
|
_ *dashboardinternal.DashboardsAPIBuilder,
|
|
_ *dashboardsnapshot.SnapshotsAPIBuilder,
|
|
_ *featuretoggle.FeatureFlagAPIBuilder,
|
|
_ *datasource.DataSourceAPIBuilder,
|
|
_ *folders.FolderAPIBuilder,
|
|
_ *iam.IdentityAccessManagementAPIBuilder,
|
|
_ *query.QueryAPIBuilder,
|
|
_ *userstorage.UserStorageAPIBuilder,
|
|
_ *secret.SecretAPIBuilder,
|
|
_ *provisioning.APIBuilder,
|
|
) *Service {
|
|
return &Service{}
|
|
}
|