watcher

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 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.Runner, forwarder *forwarder.Forwarder, 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.

Jump to

Keyboard shortcuts

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