Documentation ¶
Index ¶
Constants ¶
View Source
const ( KStatusRunning = Status(1) KStatusClose = Status(2) KStatusExit = Status(3) )
View Source
const KMaxGroupCount = 3000
Variables ¶
Functions ¶
func Group ¶ added in v0.8.3
func Group(group int, args []string, cb ProcessCallback, config Config, opts ...ArgOptionFunc)
Group 守护进程启动一个N[1,2000]子进程, 并循环监视
func Run ¶
func Run(groupId int, args []string, cb ProcessCallback, config Config, opts ...ArgOptionFunc) int
Run 守护进程启动一个子进程, 并循环监视
Types ¶
type ArgOptionFunc ¶ added in v1.0.66
type ArgOptionFunc func(arg *ArgOption)
type Cmd ¶ added in v1.1.0
func Background ¶
type GRun ¶ added in v1.1.17
type GRun struct {
// contains filtered or unexported fields
}
func (*GRun) Exec ¶ added in v1.1.17
func (g *GRun) Exec(cb ProcessCallback, config Config, opts ...ArgOptionFunc)
type Item ¶ added in v1.1.17
type Item struct { Data interface{} // contains filtered or unexported fields }
type ProcessCallback ¶
Click to show internal directories.
Click to hide internal directories.