health

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 4 Imported by: 0

README

Go

health

Simple health checks following the GRPC Health Checking Protocol

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheck

type HealthCheck interface {
	IsHealthy() bool
}

type Server

type Server struct {
	healthpb.UnimplementedHealthServer
	// contains filtered or unexported fields
}

Server implements grpc health checks

func NewServer

func NewServer() *Server

NewServer returns a new Server.

func (*Server) AddHealthCheck

func (s *Server) AddHealthCheck(service string, check HealthCheck)

func (*Server) Watch

Jump to

Keyboard shortcuts

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