grafana/pkg/registry/apis/apis.go

26 lines
420 B
Go
Raw Normal View History

package apiregistry
import (
"context"
2023-09-27 05:15:15 +08:00
playlistsv0alpha1 "github.com/grafana/grafana/pkg/apis/playlist/v0alpha1"
"github.com/grafana/grafana/pkg/registry"
)
var (
_ registry.BackgroundService = (*Service)(nil)
)
type Service struct{}
func ProvideService(
2023-09-27 05:15:15 +08:00
_ *playlistsv0alpha1.PlaylistAPIBuilder,
) *Service {
return &Service{}
}
func (s *Service) Run(ctx context.Context) error {
<-ctx.Done()
return nil
}