consul

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 13 Imported by: 16

Documentation

Index

Constants

View Source
const (
	TTLInterval                       = time.Second * 15
	TTLRefreshInterval                = time.Second * 10
	TTLDeregisterCriticalServiceAfter = time.Minute
)

Variables

This section is empty.

Functions

func NewBackend

func NewBackend(cfg *config.Consul) (registry.Backend, error)

Types

type ServiceMonitor added in v1.5.11

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

ServiceMonitor generates fabio configurations from consul state.

func NewServiceMonitor added in v1.5.11

func NewServiceMonitor(client *api.Client, config *config.Consul, dc string) *ServiceMonitor

func (*ServiceMonitor) Watch added in v1.5.11

func (w *ServiceMonitor) Watch(updates chan string)

Watch monitors the consul health checks and sends a new configuration to the updates channel on every change.

Jump to

Keyboard shortcuts

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