Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
HomeDir string
}
func (Manager) WaitGone ¶
WaitGone polls until the process with pid is gone and the pid file is deleted. Returns true if both conditions are met within timeout.
func (Manager) WaitReady ¶ added in v0.3.1
func (m Manager) WaitReady(name string, directPID int, pidTimeout, stabilityWindow time.Duration) (int, error)
WaitReady polls until the server writes its PID file, then holds for stabilityWindow to confirm the process hasn't crashed immediately. directPID is the OS PID returned by Runner.Run; if it exits before the PID file appears the function fails fast. Returns the PID read from the file on success.
Click to show internal directories.
Click to hide internal directories.