cluster: use typed IDs, introduce Region.ID, and pre-compute primary region #49

Merged
karasz merged 7 commits from pr-amery-regions into main 2024-06-03 17:22:04 +02:00
Showing only changes of commit 6d89e0ea3c - Show all commits
+2 -2
View File
@@ -16,10 +16,10 @@ const (
// ZoneMax indicates the highest number that can be used for a [ZoneID].
ZoneMax = (1 << 4) - 1
// NodeMax indicates the highest number that can be used for a [NodeID].
NodeMax = (1 << 12) - 1
NodeMax = (1 << 12) - 2
// NodeZeroMax indicates the highest number that can be used for a [NodeID]
// when its a gateway connected to Ring 0 (backbone).
NodeZeroMax = (1 << 8) - 1
NodeZeroMax = (1 << 8) - 2
// RingZeroBits indicates the size of the prefix on the ring 0 (backbone) network.
RingZeroBits = 16