mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-27 17:50:53 +01:00
feat: added modules
This commit is contained in:
17
core/interfaces/process_daemon.go
Normal file
17
core/interfaces/process_daemon.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user