health

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	pbs.UnsafeHealthServiceServer
	// contains filtered or unexported fields
}

func NewService

func NewService() *Service

func (*Service) GetHealth

func (s *Service) GetHealth(ctx context.Context, req *pbs.GetHealthRequest) (*pbs.GetHealthResponse, error)

func (*Service) SetWorkerProcessInformationFunc added in v0.11.0

func (s *Service) SetWorkerProcessInformationFunc(fn func() *pbhealth.HealthInfo) error

SetWorkerProcessInformationFunc sets the function that can be used to get the current worker related process information.

func (*Service) StartServiceUnavailableReplies

func (s *Service) StartServiceUnavailableReplies()

StartServiceUnavailableReplies gets returned to the caller of NewService. When invoked, we start responding to any health queries with a 503.

Jump to

Keyboard shortcuts

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