mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
18 lines
304 B
Go
18 lines
304 B
Go
package interfaces
|
|
|
|
import (
|
|
"os/exec"
|
|
"time"
|
|
)
|
|
|
|
type ProcessDaemon interface {
|
|
Start() (err error)
|
|
Stop()
|
|
GetMaxErrors() (maxErrors int)
|
|
SetMaxErrors(maxErrors int)
|
|
GetExitTimeout() (timeout time.Duration)
|
|
SetExitTimeout(timeout time.Duration)
|
|
GetCmd() (cmd *exec.Cmd)
|
|
GetCh() (ch chan int)
|
|
}
|