2023-09-26 06:31:58 +08:00
|
|
|
package apiregistry
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
|
2023-09-27 05:15:15 +08:00
|
|
|
playlistsv0alpha1 "github.com/grafana/grafana/pkg/apis/playlist/v0alpha1"
|
2023-09-26 06:31:58 +08:00
|
|
|
"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,
|
2023-09-26 06:31:58 +08:00
|
|
|
) *Service {
|
|
|
|
|
return &Service{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (s *Service) Run(ctx context.Context) error {
|
|
|
|
|
<-ctx.Done()
|
|
|
|
|
return nil
|
|
|
|
|
}
|