Incorporated gin server.

Each node communicates in the mesh
This commit is contained in:
Tim Beatham
2023-09-18 15:52:28 +01:00
parent fa16480521
commit 01238aca59
10 changed files with 286 additions and 20 deletions

View File

@ -0,0 +1,24 @@
package ctrlserver
import "github.com/gin-gonic/gin"
/*
* Represents a WireGuard node
*/
type MeshNode struct {
Host string
CtrlPort string
WgPort string
WgHost string
GinServer gin.Engine
}
/*
* Defines the mesh control server this node
* is running
*/
type MeshCtrlServer struct {
Host string
Port int
Meshes map[string]MeshNode
}