Documentation ¶
Index ¶
- type Cli
- func (cli *Cli) DeleteAllProcess()
- func (cli *Cli) DeleteProcess(procName string)
- func (cli *Cli) ProcInfo(procName string)
- func (cli *Cli) RestartProcess(procName string)
- func (cli *Cli) Save()
- func (cli *Cli) StartGoBin(sourcePath string, name string, keepAlive bool, args []string)
- func (cli *Cli) StartProcess(procName string)
- func (cli *Cli) Status()
- func (cli *Cli) StopProcess(procName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cli ¶
type Cli struct {
// contains filtered or unexported fields
}
Cli is the command line client.
func (*Cli) DeleteAllProcess ¶ added in v0.5.0
func (cli *Cli) DeleteAllProcess()
DeleteAllProcess will stop all process
func (*Cli) DeleteProcess ¶
DeleteProcess will stop and delete all dependencies from process procName forever.
func (*Cli) RestartProcess ¶
RestartProcess will try to restart a process with procName. Note that this process must have been already started through StartGoBin.
func (*Cli) Save ¶
func (cli *Cli) Save()
Save will save all previously saved processes onto a list. Display an error in case there's any.
func (*Cli) StartGoBin ¶
StartGoBin will try to start a go binary process. Returns a fatal error in case there's any.
func (*Cli) StartProcess ¶
StartProcess will try to start a process with procName. Note that this process must have been already started through StartGoBin.
func (*Cli) Status ¶
func (cli *Cli) Status()
Status will display the status of all procs started through StartGoBin.
func (*Cli) StopProcess ¶
StopProcess will try to stop a process named procName.