1
0
Fork 0

feat: initial release

This commit is contained in:
Arthur K. 2026-01-17 18:14:50 +03:00
parent a3cf21f5bd
commit 761174d035
Signed by: wzray
GPG key ID: B97F30FDC4636357
41 changed files with 2008 additions and 217 deletions

16
internal/types/node.go Normal file
View file

@ -0,0 +1,16 @@
package types
// TODO: consider moving this type back to registry
type Node struct {
Address string `json:"address"`
Name string `json:"name"`
Roles []Role `json:"roles"`
}
func NewNode(address string, name string, roles []Role) Node {
return Node{
Address: address,
Name: name,
Roles: roles,
}
}