health

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: BSD-3-Clause Imports: 1 Imported by: 23

Documentation

Overview

Package health is a registry for other packages to report & check overall health status of the node.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterWatcher

func RegisterWatcher(cb func(errKey string, err error)) (unregister func())

RegisterWatcher adds a function that will be called if an error changes state either to unhealthy or from unhealthy. It is not called on transition from unknown to healthy. It must be non-nil and is run in its own goroutine. The returned func unregisters it.

func RouterHealth

func RouterHealth() error

RouterHealth returns the wgengine/router.Router error state.

func SetRouterHealth

func SetRouterHealth(err error)

SetRouter sets the state of the wgengine/router.Router.

Types

This section is empty.

Jump to

Keyboard shortcuts

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