health

package
v3.2.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetServingStatusNotServing

func SetServingStatusNotServing(service string)

func SetServingStatusServing

func SetServingStatusServing(service string)

Types

type HealthTripleServer

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

func NewServer

func NewServer() *HealthTripleServer

func (*HealthTripleServer) Reference

func (srv *HealthTripleServer) Reference() string

func (*HealthTripleServer) Resume

func (srv *HealthTripleServer) Resume()

Resume sets all serving status to SERVING, and configures the server to accept all future status changes.

This changes serving status for all services. To set status for a particular services, call SetServingStatus().

func (*HealthTripleServer) SetServingStatus

func (srv *HealthTripleServer) SetServingStatus(service string, servingStatus triple_health.HealthCheckResponse_ServingStatus)

SetServingStatus is called when need to reset the serving status of a service or insert a new service entry into the statusMap.

func (*HealthTripleServer) Shutdown

func (srv *HealthTripleServer) Shutdown()

Shutdown sets all serving status to NOT_SERVING, and configures the server to ignore all future status changes.

This changes serving status for all services. To set status for a particular services, call SetServingStatus().

func (*HealthTripleServer) Watch

Directories

Path Synopsis
Code generated by protoc-gen-triple.
Code generated by protoc-gen-triple.

Jump to

Keyboard shortcuts

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