health

package
v0.0.0-...-4d918e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2017 License: BSD-3-Clause Imports: 5 Imported by: 0

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

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements `service Health`.

func NewServer

func NewServer() *Server

NewServer returns a new Server.

func (*Server) Check

Check implements `service Health`.

func (*Server) SetServingStatus

func (s *Server) 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.

Directories

Path Synopsis
Package grpc_health_v1 is a generated protocol buffer package.
Package grpc_health_v1 is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL