1
1
mirror of https://github.com/go-gitea/gitea synced 2025-09-28 03:28:13 +00:00
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,
)
}