runner

package
v1.0.1055-9357c4e Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

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

func (*Result) APIAddr

func (r *Result) APIAddr() string

func (*Result) AdminAddr

func (r *Result) AdminAddr() string

func (*Result) Logs

func (r *Result) Logs() string

func (*Result) Stop

func (r *Result) Stop() error

Stop the process, returning the exit error.

func (*Result) Wait

func (r *Result) Wait() chan error

Wait for the process to exit in a goroutine. The exit error is returned on the channel when the process exits.

type Runner

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

func New

func New(baseEnv ...string) *Runner

func NewWithDynamicEnv

func NewWithDynamicEnv(baseEnv []string, dynamicEnv func() []string) *Runner

func (*Runner) Run

func (r *Runner) Run(serverName, binary string, extraEnv ...string) (*Result, error)

Run starts the output service and waits a few seconds to confirm it has started successfully. The caller is responsible for calling Stop.

func (*Runner) Start

func (r *Runner) Start(binary string, extraEnv ...string) (*Result, error)

Start the `output` service, returning a buffer which contains the logs (stderr) of the process. The caller is responsible for calling Stop.

func (*Runner) Stop

func (r *Runner) Stop() error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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