Skip to content
Snippets Groups Projects
service.go 562 B
Newer Older
	"gitlab.eclipse.org/eclipse/xfsc/tsa/policy/gen/health"
)
func New(version string) *Service {
	return &Service{ver: version}
func (s *Service) Liveness(_ context.Context) (*health.HealthResponse, error) {
	return &health.HealthResponse{
		Service: "policy",
		Status:  "up",
		Version: s.ver,
	}, nil
}

func (s *Service) Readiness(_ context.Context) (*health.HealthResponse, error) {
	return &health.HealthResponse{
		Service: "policy",
		Status:  "up",
		Version: s.ver,
	}, nil