watcher

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

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

Watcher monitors health of the currently forwarded ports and launched applications.

func NewWatcher

func NewWatcher(runner runner.RunnerInterface, forwarder forwarder.ForwarderInterface, conf *config.Watcher, project *config.Project) *Watcher

NewWatcher initializes a watcher instance monitoring services using both runner and forwarder

func (*Watcher) Stop added in v0.0.5

func (w *Watcher) Stop() error

Stop stops all currently active file watchers on local running applications

func (*Watcher) Watch

func (w *Watcher) Watch()

Watch runs both local applications and forwarded ones and ensure they keep running. It also relaunch them in case of file changes.

type WatcherInterface added in v0.0.8

type WatcherInterface interface {
	Watch()
	Stop() error
}

Jump to

Keyboard shortcuts

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