Skip to content

goxb/grpchealth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grpchealth

it is a package that implement grpc health probe v1

Example

    healthServer := grpchealth.NewServer("demo",
		health.WithChecksFunc(checkHealth),
		//health.WithRegularInterval(time.Minute),
	)

    func checksFunc() healthpb.HealthCheckResponse_ServingStatus {
	// TODO: check your service
	return healthpb.HealthCheckResponse_SERVING
}

About

it is a package that implement grpc health probe v1

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages