healthcheck

package
v1.4.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2017 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 BackendHealthCheck

type BackendHealthCheck struct {
	Options
	// contains filtered or unexported fields
}

BackendHealthCheck HealthCheck configuration for a backend

func NewBackendHealthCheck

func NewBackendHealthCheck(options Options) *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 returns the health check which is guaranteed to be a singleton.

func (*HealthCheck) SetBackendsConfiguration

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

SetBackendsConfiguration set backends configuration

type LoadBalancer added in v1.3.0

type LoadBalancer interface {
	RemoveServer(u *url.URL) error
	UpsertServer(u *url.URL, options ...roundrobin.ServerOption) error
	Servers() []*url.URL
}

LoadBalancer includes functionality for load-balancing management.

type Options added in v1.3.0

type Options struct {
	Path     string
	Port     int
	Interval time.Duration
	LB       LoadBalancer
}

Options are the public health check options.

func (Options) String added in v1.3.0

func (opt Options) String() string

Jump to

Keyboard shortcuts

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