var CmdGrpcHealthChecking … var port … var httpPort … var delayUnhealthySec … var service … var forceUnhealthy … var certFile … var privKeyFile … func init() { … } type HealthChecker … func (s *HealthChecker) Check(ctx context.Context, req *grpc_health_v1.HealthCheckRequest) (*grpc_health_v1.HealthCheckResponse, error) { … } func (s *HealthChecker) Watch(req *grpc_health_v1.HealthCheckRequest, server grpc_health_v1.Health_WatchServer) error { … } func NewHealthChecker(started time.Time) *HealthChecker { … } func main(cmd *cobra.Command, args []string) { … }