| 37 | ) |
| 38 | |
| 39 | type WorkerNode struct { |
| 40 | Name string |
| 41 | IP string |
| 42 | Port string |
| 43 | |
| 44 | CpuUsage uint64 |
| 45 | MemoryUsage uint64 |
| 46 | |
| 47 | CpuCores uint64 |
| 48 | Memory uint64 |
| 49 | |
| 50 | LastHeartbeat time.Time |
| 51 | wnConnection proto.WorkerNodeInterfaceClient |
| 52 | |
| 53 | endpointMap synchronization.SyncStructure[*core.Endpoint, string] |
| 54 | Schedulable bool |
| 55 | } |
| 56 | |
| 57 | func (w *WorkerNode) SetSchedulability(val bool) { |
| 58 | w.Schedulable = val |
nothing calls this directly
no outgoing calls
no test coverage detected