state

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	Processes map[string]processState `json:"processes"`
	Errors    map[string]errorInfo    `json:"errors"`
}

func (*State) IsSupervisorRunning

func (s *State) IsSupervisorRunning(taskID string) (bool, error)

func (*State) IsTaskRunning

func (s *State) IsTaskRunning(taskID string) (bool, error)

func (*State) KillTask

func (s *State) KillTask(taskID string) error

func (*State) PrintErrors

func (s *State) PrintErrors() error

PrintErrors ,,,

func (*State) PrintState

func (s *State) PrintState() error

func (*State) RegisterError

func (s *State) RegisterError(taskID string, errMessage string) error

RegisterError ...

func (*State) RegisterTask

func (s *State) RegisterTask(taskID string, pid int) error

type TaskManager

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

func GetTaskManager

func GetTaskManager() TaskManager

func (*TaskManager) GetState

func (s *TaskManager) GetState() (*State, error)

func (*TaskManager) RunGuarded

func (s *TaskManager) RunGuarded(fun func(*State) error) error

Jump to

Keyboard shortcuts

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