Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultMeshPort = 9091 BroadcastAddr = "255.255.255.255:9090" )
Variables ¶
This section is empty.
Functions ¶
func LoadOrCreateIdentity ¶
Types ¶
type MeshRuntime ¶
type MeshRuntime struct {
Mesh *NodeMesh
}
func StartMesh ¶
func StartMesh(port int, handler func(env uil.UILEnvelope)) (*MeshRuntime, error)
type NodeMesh ¶
type NodeMesh struct {
// contains filtered or unexported fields
}
func NewNodeMesh ¶
func NewNodeMesh(port int, handler func(env uil.UILEnvelope)) (*NodeMesh, error)
func (*NodeMesh) BroadcastGossip ¶
func (m *NodeMesh) BroadcastGossip(env *uil.UILEnvelope) error
func (*NodeMesh) GetActivePeers ¶
Click to show internal directories.
Click to hide internal directories.