Chore: Allow to compile testdata backend as a plugin (#75360)

This commit is contained in:
Andres Martinez Gotor
2023-09-26 15:30:25 +02:00
committed by GitHub
parent 3f39acd78a
commit c129c0cd39
4 changed files with 80 additions and 0 deletions
@@ -59,3 +59,10 @@ func (s *Service) QueryData(ctx context.Context, req *backend.QueryDataRequest)
func (s *Service) CallResource(ctx context.Context, req *backend.CallResourceRequest, sender backend.CallResourceResponseSender) error {
return s.resourceHandler.CallResource(ctx, req, sender)
}
func (s *Service) CheckHealth(_ context.Context, _ *backend.CheckHealthRequest) (*backend.CheckHealthResult, error) {
return &backend.CheckHealthResult{
Status: backend.HealthStatusOk,
Message: "Data source is working",
}, nil
}