Files
2023-10-06 21:55:22 +03:00

30 lines
691 B
Go

package apiregistry
import (
"context"
examplev0alpha1 "github.com/grafana/grafana/pkg/apis/example/v0alpha1"
playlistsv0alpha1 "github.com/grafana/grafana/pkg/apis/playlist/v0alpha1"
"github.com/grafana/grafana/pkg/registry"
)
var (
_ registry.BackgroundService = (*Service)(nil)
)
type Service struct{}
// ProvideService 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 ProvideService(
_ *playlistsv0alpha1.PlaylistAPIBuilder,
_ *examplev0alpha1.TestingAPIBuilder,
) *Service {
return &Service{}
}
func (s *Service) Run(ctx context.Context) error {
<-ctx.Done()
return nil
}