Documentation ¶
Index ¶
- func Background(id int, args []string, conf Config, opts ...ArgOptionFunc) (*exec.Cmd, error)
- func Group(group int, args []string, cb ProcessCallback, config Config, ...)
- func Run(groupId int, args []string, cb ProcessCallback, config Config, ...) int
- type ArgOption
- type ArgOptionFunc
- type Config
- type ProcessCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Background ¶
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)
Click to show internal directories.
Click to hide internal directories.