healthcheck

package
v0.0.0-...-37f65c1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthChecker

type HealthChecker struct {
	sync.Mutex

	Wg *sync.WaitGroup
	// contains filtered or unexported fields
}

func New

func New(client *http.Client, subscribers []chan connection.Message, backend string, currentHealth bool) *HealthChecker

func (*HealthChecker) Reuse

func (hc *HealthChecker) Reuse(newBackend string, proxy *httputil.ReverseProxy) *HealthChecker

func (*HealthChecker) Shutdown

func (hc *HealthChecker) Shutdown()

func (*HealthChecker) Start

func (hc *HealthChecker) Start(startup *sync.WaitGroup)

type Reponse

type Reponse struct {
	State   string `json:"state"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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