Documentation ¶
Index ¶
- Constants
- Variables
- func CheckProcs(mgr process.IManager) error
- func KillAllProcs(mgr process.IManager) error
- func SetArgs(mgr process.IManager, args ...string) error
- func SetContext(mgr process.IManager, ctx context.Context) error
- func SetPath(mgr process.IManager, path string) error
- func Spawn(mgr process.IManager, lgr logger.ILogger, cnf *Config) (*process.Process, error)
- func SpawnProcs(mgr process.IManager) error
- type Args
- type Config
- type Manager
- type Process
Constants ¶
View Source
const ( STRING_LIT_PORT string = "-port" STRING_FMT_PORT string = "%d" )
View Source
const ( CMD_SET_CTX = iota CMD_SET_PATH CMD_SET_ARGS CMD_SPAWN CMD_CHECK CMD_KILL_ALL )
Variables ¶
View Source
var (
CheckDelaySleep time.Duration = 250 * time.Millisecond
)
Functions ¶
func CheckProcs ¶
func KillAllProcs ¶
func SpawnProcs ¶
Types ¶
type Config ¶
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) SetContext ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func (*Process) SetContext ¶
Click to show internal directories.
Click to hide internal directories.