1
0
forked from extern/smegmesh
smegmesh/pkg/ctrlserver/ctrltypes.go
Tim Beatham 01238aca59 Incorporated gin server.
Each node communicates in the mesh
2023-09-18 15:52:28 +01:00

25 lines
365 B
Go

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
}