DefaultPort Default port
const DefaultPort string = "8100"
RcvCnt used to measure how many packets are being received every second
var RcvCnt = 0
func Config()
Config Loads a configuration file into memory it assumes mesh/mesh.go loads config first
func GetMyEndPoint() string
GetMyEndPoint Returns the end point
func IsMyself(addr string) bool
IsMyself Returns true if the given address is its own
func NoMeshAddrFileOutput()
NoMeshAddrFileOutput this will prevent from mesh to write its own addrss to MESH_DIARKIS_ADDR in /tmp
func OnShutdownMeshNetwork(callback func(func()))
OnShutdownMeshNetwork registers a callback on ShutdownMeshNetwork
func SetValidator(v func(string) bool)
SetValidator [INTERNAL USE ONLY] this is called in mesh.go to pass validator function to see if the message sender is in the same cluster or not
func ShutdownMeshNetwork()
ShutdownMeshNetwork Stops mesh network
func Start(next func(error))
Start Starts mesh network