cli

package
v0.0.0-...-130d745 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 InitCli

func InitCli(dsn string, timeout time.Duration) *Cli

InitCli initiates a remote client connecting to dsn. Returns a Cli instance.

func (*Cli) DeleteAllProcess

func (cli *Cli) DeleteAllProcess()

DeleteAllProcess will stop all process

func (*Cli) DeleteProcess

func (cli *Cli) DeleteProcess(procName string)

DeleteProcess will stop and delete all dependencies from process procName forever.

func (*Cli) ProcInfo

func (cli *Cli) ProcInfo(procName string)

ProcInfo will display process information

func (*Cli) RestartProcess

func (cli *Cli) RestartProcess(procName string)

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

func (cli *Cli) StartGoBin(sourcePath string, name string, keepAlive bool, args []string, binFile bool)

StartGoBin will try to start a go binary process. Returns a fatal error in case there's any.

func (*Cli) StartProcess

func (cli *Cli) StartProcess(procName string)

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

func (cli *Cli) StopProcess(procName string)

StopProcess will try to stop a process named procName.

Jump to

Keyboard shortcuts

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