mirror of
https://github.com/tim-beatham/smegmesh.git
synced 2025-08-09 21:27:33 +02:00
21-phonetic-words-ipv6
Simple what 8 words implementation
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user