Files
gitea/routers/api/bots/grpc/health.go
2022-12-02 22:25:31 +08:00

19 lines
348 B
Go

// Copyright 2022 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package grpc
import (
"net/http"
grpchealth "github.com/bufbuild/connect-grpchealth-go"
)
func HealthRoute() (string, http.Handler) {
// grpcHealthCheck
return grpchealth.NewHandler(
grpchealth.NewStaticChecker(allServices...),
compress1KB,
)
}