21-phonetic-words-ipv6

Simple what 8 words implementation
This commit is contained in:
Tim Beatham
2023-11-20 18:07:52 +00:00
parent 330fa74ef4
commit 95f4495b0b
4 changed files with 145 additions and 10 deletions

View File

@ -1,5 +1,10 @@
package api
type Route struct {
RouteId string `json:"routeId"`
Prefix string `json:"prefix"`
}
type SmegNode struct {
Alias string `json:"alias"`
WgHost string `json:"wgHost"`
@ -8,7 +13,7 @@ type SmegNode struct {
Timestamp int `json:"timestamp"`
Description string `json:"description"`
PublicKey string `json:"publicKey"`
Routes []string `json:"routes"`
Routes []Route `json:"routes"`
Services map[string]string `json:"services"`
}
@ -26,3 +31,7 @@ type JoinMeshRequest struct {
Bootstrap string `json:"bootstrap" binding:"required"`
MeshId string `json:"meshid" binding:"required"`
}
type ApiServerConf struct {
WordsFile string
}