Documentation ¶
Index ¶
- Constants
- func HealthMiddleware(h http.Handler) http.Handler
- type HealthServer
- func (s *HealthServer) AuthFuncOverride(ctx context.Context, _ string) (context.Context, error)
- func (s *HealthServer) Check(ctx context.Context, in *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error)
- func (s *HealthServer) Close()
- func (s *HealthServer) Start(gs *grpc.Server)
- func (s *HealthServer) Watch(in *healthpb.HealthCheckRequest, server healthpb.Health_WatchServer) error
Constants ¶
View Source
const AllServices = "*"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HealthServer ¶
type HealthServer struct {
Server *grpc_health.Server
}
HealthServer 简化版健康检查
func NewHealthServer ¶
func NewHealthServer() *HealthServer
func (*HealthServer) AuthFuncOverride ¶
AuthFuncOverride health check without grpc auth middleware.
func (*HealthServer) Check ¶
func (s *HealthServer) Check(ctx context.Context, in *healthpb.HealthCheckRequest, ) (*healthpb.HealthCheckResponse, error)
Check implement check
func (*HealthServer) Watch ¶
func (s *HealthServer) Watch(in *healthpb.HealthCheckRequest, server healthpb.Health_WatchServer, ) error
Watch implement watch
Click to show internal directories.
Click to hide internal directories.