mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-27 17:50:53 +01:00
refactor: updated grpc services
This commit is contained in:
@@ -9,6 +9,4 @@ type NodeMasterService interface {
|
||||
Monitor()
|
||||
SetMonitorInterval(duration time.Duration)
|
||||
Register() error
|
||||
StopOnError()
|
||||
GetServer() GrpcServer
|
||||
}
|
||||
|
||||
@@ -3,6 +3,5 @@ package interfaces
|
||||
type NodeService interface {
|
||||
Module
|
||||
WithConfigPath
|
||||
WithAddress
|
||||
GetConfigService() NodeConfigService
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@ import "time"
|
||||
type NodeWorkerService interface {
|
||||
NodeService
|
||||
Register()
|
||||
Recv()
|
||||
ReportStatus()
|
||||
SetHeartbeatInterval(duration time.Duration)
|
||||
}
|
||||
|
||||
@@ -11,5 +11,4 @@ type TaskRunner interface {
|
||||
Cancel(force bool) (err error)
|
||||
SetSubscribeTimeout(timeout time.Duration)
|
||||
GetTaskId() (id primitive.ObjectID)
|
||||
CleanUp() (err error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user