grpchealth

package
v0.18.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package grpchealth package provides server implementing Check rpc that meets https://github.com/grpc/grpc/blob/master/doc/health-checking.md

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheckingService

type HealthCheckingService struct {
	grpc_health_v1.UnimplementedHealthServer
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

func (*HealthCheckingService) Check

Check implements `service Health`.

func (*HealthCheckingService) Dead

func (s *HealthCheckingService) Dead()

Dead - changes status of service to dead

func (*HealthCheckingService) Live

func (s *HealthCheckingService) Live()

Live - changes status of service to alive

func (*HealthCheckingService) NotReady

func (s *HealthCheckingService) NotReady()

NotReady - changes status of service to not ready

func (*HealthCheckingService) Ready

func (s *HealthCheckingService) Ready()

Ready - changes status of service to ready

type Logger

type Logger = logger.Logger

Jump to

Keyboard shortcuts

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