MCPcopy Create free account
hub / github.com/eth-easl/dirigent / WorkerNode

Struct WorkerNode

internal/control_plane/workers/worker_node.go:39–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37)
38
39type 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
57func (w *WorkerNode) SetSchedulability(val bool) {
58 w.Schedulable = val

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected