health

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadyService

type ReadyService interface {
	Ready() error
}

ReadyService is the interface services must implement to be part of a normal ready check when running in kubernetes

type Service

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

Service is the implementation of a health service

func NewService

func NewService(s ...ReadyService) *Service

NewService creates the service with the other services to ready check

func (Service) Live

Live gets if the server is alive

func (Service) Ready

Ready gets if the server is ready for traffic

Jump to

Keyboard shortcuts

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