runner

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: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StdOut = "stdout"
	StdErr = "stderr"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logstreamer

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

func NewLogstreamer

func NewLogstreamer(stdType string, name string, view ui.ViewInterface) *Logstreamer

func (*Logstreamer) Close

func (l *Logstreamer) Close()

func (*Logstreamer) Flush

func (l *Logstreamer) Flush() error

func (*Logstreamer) Write

func (l *Logstreamer) Write(p []byte) (n int, err error)

type Runner

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

Runner is the struct that manage running local applications

func NewRunner

func NewRunner(view ui.ViewInterface, proxy proxy.ProxyInterface, project *config.Project) *Runner

NewRunner instancites a Runner struct from configuration data

func (*Runner) Restart

func (r *Runner) Restart(application *config.Application)

Restart kills the current application launch (if it exists) and launch a new one

func (*Runner) Run

func (r *Runner) Run(application *config.Application)

Run launches the application

func (*Runner) RunAll

func (r *Runner) RunAll()

RunAll runs all local applications in separated goroutines

func (*Runner) SetupAll added in v0.0.7

func (r *Runner) SetupAll()

SetupAll runs setup commands for all applications in case their directory does not already exists

func (*Runner) Stop added in v0.0.5

func (r *Runner) Stop() error

Stop stops all the currently active local applications

type RunnerInterface added in v0.0.8

type RunnerInterface interface {
	RunAll()
	SetupAll()
	Run(application *config.Application)
	Restart(application *config.Application)
	Stop() error
}

Jump to

Keyboard shortcuts

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