run

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	Name string
	Args []string
	Dir  string

	Waits []chan struct{}

	Save bool
	// contains filtered or unexported fields
}

func (Cmd) GetOut

func (c Cmd) GetOut() []byte

func (*Cmd) IsRunning

func (c *Cmd) IsRunning() bool

func (*Cmd) Start

func (c *Cmd) Start()

func (*Cmd) Stop

func (c *Cmd) Stop() error

func (*Cmd) Wait

func (c *Cmd) Wait(timeout time.Duration)

func (*Cmd) WaitUntil

func (c *Cmd) WaitUntil(text string, timeout time.Duration)

type Queue

type Queue struct {
	Port   int
	Shard  uint
	Server *server.Server
	Error  error
}

func NewQueue

func NewQueue(port int, shard uint) *Queue

func (*Queue) End

func (q *Queue) End()

func (*Queue) Start

func (q *Queue) Start() error

type Wait

type Wait struct {
	Text  string
	Found chan struct{}
}

type WaitWriter

type WaitWriter struct {
	Writer io.Writer
	Waits  []Wait
	Save   bool
	Out    []byte
}

func (*WaitWriter) Write

func (w *WaitWriter) Write(p []byte) (n int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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