Files
crawlab/core/interfaces/process_daemon.go
2024-06-14 15:42:50 +08:00

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)
}