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.
Click to show internal directories.
Click to hide internal directories.