watcher

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Stations []string
	VMURL    string
	VMUser   string
	VMPass   string
	Logger   *hllogger.HlLogger
}

Config allows to customize the instanciation of a watcher with New()

type Controller

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

Controller interfaces the watcher. Must be instanciated with New()

func New

func New(ctx context.Context, conf Config) (c *Controller, err error)

New returns an initialized and ready to use Controller

func (*Controller) WaitStopped

func (c *Controller) WaitStopped()

WaitStopped will block until c is fully stopped. To be stopped, c needs to have its context cancelled. WaitStopped is safe to be called from multiples goroutines.

Jump to

Keyboard shortcuts

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