healthcheck

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendHealthCheck

type BackendHealthCheck struct {
	Path         string
	Interval     time.Duration
	DisabledURLs []*url.URL
	// contains filtered or unexported fields
}

BackendHealthCheck HealthCheck configuration for a backend

func NewBackendHealthCheck

func NewBackendHealthCheck(URL string, interval time.Duration, lb loadBalancer) *BackendHealthCheck

NewBackendHealthCheck Instantiate a new BackendHealthCheck

type HealthCheck

type HealthCheck struct {
	Backends map[string]*BackendHealthCheck
	// contains filtered or unexported fields
}

HealthCheck struct

func GetHealthCheck

func GetHealthCheck() *HealthCheck

GetHealthCheck Get HealtchCheck Singleton

func (*HealthCheck) SetBackendsConfiguration

func (hc *HealthCheck) SetBackendsConfiguration(parentCtx context.Context, backends map[string]*BackendHealthCheck)

SetBackendsConfiguration set backends configuration

Jump to

Keyboard shortcuts

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