Files
crawlab/backend/apps/interfaces.go
2021-07-10 21:47:30 +08:00

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
}