| 63 | } |
| 64 | |
| 65 | func NewWorkerNode(workerNodeConfiguration core.WorkerNodeConfiguration) core.WorkerNodeInterface { |
| 66 | return &WorkerNode{ |
| 67 | Name: workerNodeConfiguration.Name, |
| 68 | IP: workerNodeConfiguration.IP, |
| 69 | Port: workerNodeConfiguration.Port, |
| 70 | CpuCores: workerNodeConfiguration.CpuCores, |
| 71 | Memory: workerNodeConfiguration.Memory, |
| 72 | LastHeartbeat: time.Now(), |
| 73 | endpointMap: synchronization.NewControlPlaneSyncStructure[*core.Endpoint, string](), |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | func (w *WorkerNode) GetWorkerNodeConfiguration() core.WorkerNodeConfiguration { |
| 78 | return core.WorkerNodeConfiguration{ |