mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-24 17:41:03 +01:00
feat: added modules
This commit is contained in:
22
core/interfaces/model_node.go
Normal file
22
core/interfaces/model_node.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package interfaces
|
||||
|
||||
import "time"
|
||||
|
||||
type Node interface {
|
||||
ModelWithNameDescription
|
||||
GetKey() (key string)
|
||||
GetIsMaster() (ok bool)
|
||||
GetActive() (active bool)
|
||||
SetActive(active bool)
|
||||
SetActiveTs(activeTs time.Time)
|
||||
GetStatus() (status string)
|
||||
SetStatus(status string)
|
||||
GetEnabled() (enabled bool)
|
||||
SetEnabled(enabled bool)
|
||||
GetAvailableRunners() (runners int)
|
||||
SetAvailableRunners(runners int)
|
||||
GetMaxRunners() (runners int)
|
||||
SetMaxRunners(runners int)
|
||||
IncrementAvailableRunners()
|
||||
DecrementAvailableRunners()
|
||||
}
|
||||
Reference in New Issue
Block a user