Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry tracks workers by heartbeat lease.
type Worker ¶
type Worker struct {
ID string
Addr string
State WorkerState
LastSeen time.Time
LeaseExpire time.Time
}
Worker is an in-memory lease entry for one runtime worker.
type WorkerState ¶
type WorkerState string
WorkerState captures current scheduler view for one worker.
const ( WorkerIdle WorkerState = "idle" WorkerBusy WorkerState = "busy" WorkerUnknown WorkerState = "unknown" )
Click to show internal directories.
Click to hide internal directories.