launcher

package
v0.0.0-...-d500d3c Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: MIT Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Launcher

type Launcher struct {
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
	// contains filtered or unexported fields
}

Launcher represents the main program execution.

func NewLauncher

func NewLauncher() *Launcher

NewLauncher returns a new instance of Launcher connected to standard in/out/err.

func (*Launcher) Cancel

func (m *Launcher) Cancel()

Cancel executes the context cancel on the program. Used for testing.

func (*Launcher) Engine

func (m *Launcher) Engine() *storage.Engine

Engine returns a reference to the storage engine. It should only be called for end-to-end testing purposes.

func (*Launcher) Run

func (m *Launcher) Run(ctx context.Context, args ...string) error

Run executes the program with the given CLI arguments.

func (*Launcher) Running

func (m *Launcher) Running() bool

func (*Launcher) Shutdown

func (m *Launcher) Shutdown(ctx context.Context)

Shutdown shuts down the HTTP server and waits for all services to clean up.

func (*Launcher) URL

func (m *Launcher) URL() string

URL returns the URL to connect to the HTTP server.

Jump to

Keyboard shortcuts

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