Documentation
¶
Index ¶
- type State
- func (s *State) IsSupervisorRunning(taskID string) (bool, error)
- func (s *State) IsTaskRunning(taskID string) (bool, error)
- func (s *State) KillTask(taskID string) error
- func (s *State) PrintErrors() error
- func (s *State) PrintState() error
- func (s *State) RegisterError(taskID string, errMessage string) error
- func (s *State) RegisterTask(taskID string, pid int) error
- type TaskManager
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 (*State) PrintState ¶
func (*State) RegisterError ¶
RegisterError ...
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
Click to show internal directories.
Click to hide internal directories.