guard

package
v0.0.0-...-16cb735 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Guard

type Guard struct {
	sync.Mutex

	// StatusUpdates receives monitoring updates
	StatusUpdates chan *monitoring.MonitorStatus
	// contains filtered or unexported fields
}

Guard is a monitoring manager

func NewGuard

func NewGuard() *Guard

NewGuard creates a new guard

func (*Guard) ConfigureServices

func (guard *Guard) ConfigureServices(services []*configuration.ServiceConfiguration) error

ConfigureServices sets up the configured monitors. Use Reload to apply the configuration

func (*Guard) Reload

func (guard *Guard) Reload() error

Reload reloads the guard

func (*Guard) Start

func (guard *Guard) Start()

Start starts the guard

func (*Guard) Stop

func (guard *Guard) Stop()

Stop stops the guard

Jump to

Keyboard shortcuts

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