package health
import "github.com/etcd-io/etcd/Godeps/_workspace/src/google.golang.org/grpc/health"
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 ¶
Types ¶
type HealthServer ¶
type HealthServer struct {
// contains filtered or unexported fields
}
func NewHealthServer ¶
func NewHealthServer() *HealthServer
func (*HealthServer) Check ¶
func (s *HealthServer) Check(ctx context.Context, in *healthpb.HealthCheckRequest) (*healthpb.HealthCheckResponse, error)
func (*HealthServer) SetServingStatus ¶
func (s *HealthServer) SetServingStatus(service string, status healthpb.HealthCheckResponse_ServingStatus)
SetServingStatus is called when need to reset the serving status of a service or insert a new service entry into the statusMap.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Godeps/_workspace/src/google.golang.org/grpc/health/grpc_health_v1 | Package grpc_health_v1 is a generated protocol buffer package. |
- Version
- v2.3.8+incompatible (latest)
- Published
- Feb 16, 2017
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 month ago –
Tools for package owners.