consul

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Up is a measure of cps's readiness. If true there are no issues with s3.
	Up bool

	// Health is a measure of cps's overall health. If false the watcher
	// it is likely that the watcher could not list objects. In this case, there
	// are still probably objects in the kv store so the service is still
	// considered "Up".
	Health bool

	// Config contains minimal configuration information. Need to export
	// the config struct itself (TODO).
	Config config
)

Functions

func Poll

func Poll(host string, log *zap.Logger)

Poll polls every 60 seconds, kicking off a consul sync.

func Sync

func Sync(t time.Time, log *zap.Logger)

Sync connects to consul and gets a list of services and their health. Finally, it puts all healthy services into the kv store.

Types

This section is empty.

Jump to

Keyboard shortcuts

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