status

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Status

type Status struct {
	CurrentStatus UnitStatus
	Cmd           *exec.Cmd
	OutFile       *os.File
	// contains filtered or unexported fields
}

func NewRunningStatus

func NewRunningStatus(cmd *exec.Cmd, f *os.File) *Status

func (*Status) ClearShutdown

func (s *Status) ClearShutdown()

func (*Status) Lock

func (s *Status) Lock()

func (*Status) MarkShutdownRequested

func (s *Status) MarkShutdownRequested()

func (*Status) Stop

func (s *Status) Stop()

func (Status) String

func (s Status) String() string

func (*Status) Unlock

func (s *Status) Unlock()

func (*Status) WaitForCommandEnd

func (s *Status) WaitForCommandEnd()

type StatusCallback

type StatusCallback func(*Status)

type UnitStatus

type UnitStatus int
const (
	NotStarted UnitStatus = iota
	Running
	Stopped
	Crashed
)

Jump to

Keyboard shortcuts

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