Documentation ¶
Overview ¶
Package mesh is used to manage the Manager network.
Index ¶
- type Device
- type Manager
- func (m *Manager) Peer(peerID protocol.PeerID) *peer.Peer
- func (m *Manager) PeerCatchup(syncPeer *message.PacketSyncPeer) error
- func (m *Manager) PeerCatchupAck(syncPeer *message.PacketSyncPeer)
- func (m *Manager) PeerEndpoints(syncPeer *message.PacketSyncPeer)
- func (m *Manager) ProbeResult(probe *message.PacketProbeResponse)
- func (m *Manager) Summarize() *Summary
- func (m *Manager) SyncEndpoints(endpoints []string)
- func (m *Manager) Tick()
- func (m *Manager) Tunnel(dest string) *tunnel.Tunnel
- func (m *Manager) Update(latestNetworks []protocol.Network, latestPeers []protocol.Peer) error
- type Network
- type State
- type Summary
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is used to manage all tunnels connected to the current node.
func NewManager ¶
func (*Manager) PeerCatchup ¶
func (m *Manager) PeerCatchup(syncPeer *message.PacketSyncPeer) error
func (*Manager) PeerCatchupAck ¶
func (m *Manager) PeerCatchupAck(syncPeer *message.PacketSyncPeer)
func (*Manager) PeerEndpoints ¶
func (m *Manager) PeerEndpoints(syncPeer *message.PacketSyncPeer)
func (*Manager) ProbeResult ¶
func (m *Manager) ProbeResult(probe *message.PacketProbeResponse)
ProbeResult handles the probe response from relay server.
func (*Manager) SyncEndpoints ¶
SyncEndpoints synchronize the latest endpoints to the remote peers which had established P2P connection with the local peer.
Click to show internal directories.
Click to hide internal directories.