mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
26 lines
335 B
Go
26 lines
335 B
Go
package apps
|
|
|
|
import "github.com/crawlab-team/crawlab-core/interfaces"
|
|
|
|
type App interface {
|
|
Init()
|
|
Start()
|
|
Wait()
|
|
Stop()
|
|
}
|
|
|
|
type NodeApp interface {
|
|
App
|
|
interfaces.WithConfigPath
|
|
SetGrpcAddress(address interfaces.Address)
|
|
}
|
|
|
|
type MasterApp interface {
|
|
NodeApp
|
|
SetRunOnMaster(ok bool)
|
|
}
|
|
|
|
type WorkerApp interface {
|
|
NodeApp
|
|
}
|