mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
23 lines
515 B
Go
23 lines
515 B
Go
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()
|
|
}
|