Documentation
¶
Index ¶
Constants ¶
View Source
const ( CmdStart = "start" CmdStop = "stop" CmdReload = "reload" CmdList = "list" CmdMonitor = "monitor" )
View Source
const ( StatusInit = "init" // init process StatusRunning = "running" // success running StatusStopped = "stopped" // success finished or run stop success StatusReload = "reload" // StatusFailed = "failed" // run error )
View Source
const EOF = "\r\n\r\n"
数据传输结束标记
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecFlags ¶
type Package ¶
func (*Package) MustToJson ¶
type Process ¶
type Process struct {
ID uint `gorm:"primary_key" json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt *time.Time `sql:"index" json:"deleted_at"`
Pid int `gorm:"column:pid" json:"pid"`
Log string `gorm:"column:log" json:"log"`
Name string `json:"name"`
ProcessFile string `json:"process_file"`
Args string `json:"args"`
Status string `json:"status"`
Pointer *os.Process `gorm:"-" json:"-"`
AutoRestart bool `json:"auto_restart"`
Uid string
Username string
Gid string
}
func (Process) NoAutoRestartStr ¶
func (Process) RenderTable ¶
Click to show internal directories.
Click to hide internal directories.