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