1
0
forked from extern/smegmesh
smegmesh/pkg/ctrlserver/ctrltypes.go

25 lines
365 B
Go
Raw Normal View History

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
}