Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package health provides some utility functions to health-check a server. The implementation is based on protobuf. Users need to write their own implementations if other IDLs are used.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheck ¶
func HealthCheck(t time.Duration, cc *grpc.ClientConn) error
HealthCheck is the client side function to health-check a server
Types ¶
type HealthServer ¶
type HealthServer struct {
}
    func (*HealthServer) Check ¶
func (s *HealthServer) Check(ctx context.Context, in *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error)
      
      Directories
      ¶
    
    | Path | Synopsis | 
|---|---|
| 
       Package grpc_health is a generated protocol buffer package. 
         | 
      Package grpc_health is a generated protocol buffer package. | 
 Click to show internal directories. 
   Click to hide internal directories.