mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
18 lines
408 B
Go
18 lines
408 B
Go
|
package staticregistry
|
||
|
|
||
|
import (
|
||
|
"github.com/grafana/grafana/pkg/coremodel/dashboard"
|
||
|
"github.com/grafana/grafana/pkg/framework/coremodel"
|
||
|
)
|
||
|
|
||
|
// ProvideRegistry provides a simple static Registry for coremodels.
|
||
|
// Coremodels have to be manually added.
|
||
|
// TODO dynamism
|
||
|
func ProvideRegistry(
|
||
|
dashboard *dashboard.Coremodel,
|
||
|
) (*coremodel.Registry, error) {
|
||
|
return coremodel.NewRegistry(
|
||
|
dashboard,
|
||
|
)
|
||
|
}
|