ec62202f71
Signed-off-by: Alejandro Mery <amery@jpi.io>
19 lines
285 B
Go
19 lines
285 B
Go
package cluster
|
|
|
|
import "strconv"
|
|
|
|
type (
|
|
// ZoneID is the identifier of a [Zone]
|
|
ZoneID int
|
|
// NodeID is the identifier of a [Machine]
|
|
NodeID int
|
|
)
|
|
|
|
func (z ZoneID) String() string {
|
|
return strconv.Itoa(int(z))
|
|
}
|
|
|
|
func (n NodeID) String() string {
|
|
return strconv.Itoa(int(n))
|
|
}
|