mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 12:44:10 -06:00
2136e680c4
* remove dashboard previews backend * remove dashboard previews backend * bring back the migration * bring back the migration * bring back the migration
27 lines
659 B
Go
27 lines
659 B
Go
package usagestatssvcs
|
|
|
|
import (
|
|
"github.com/grafana/grafana/pkg/registry"
|
|
"github.com/grafana/grafana/pkg/services/accesscontrol"
|
|
)
|
|
|
|
func ProvideUsageStatsProvidersRegistry(
|
|
accesscontrol accesscontrol.Service,
|
|
) *UsageStatsProvidersRegistry {
|
|
return NewUsageStatsProvidersRegistry(
|
|
accesscontrol,
|
|
)
|
|
}
|
|
|
|
type UsageStatsProvidersRegistry struct {
|
|
Services []registry.ProvidesUsageStats
|
|
}
|
|
|
|
func NewUsageStatsProvidersRegistry(services ...registry.ProvidesUsageStats) *UsageStatsProvidersRegistry {
|
|
return &UsageStatsProvidersRegistry{services}
|
|
}
|
|
|
|
func (r *UsageStatsProvidersRegistry) GetServices() []registry.ProvidesUsageStats {
|
|
return r.Services
|
|
}
|