mycelium module #18
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_lib#18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Mycelium networking implementation for , providing IPv6 overlay networking, automatic peer discovery, and secure node-to-node communication.
Functionality
Module API
Network Management
MyceliumNetwork::new(config: MyceliumConfig) -> Result<Self, MyceliumError>- Create networkMyceliumNetwork::get_address(&self) -> Option<Ipv6Addr>- Get IPv6 addressMyceliumNetwork::get_peers(&self) -> Result<Vec<PeerInfo>, MyceliumError>- Get peersstart_network_daemon(&self) -> Result<Child, MyceliumError>- Start daemonstop_network_daemon(&self) -> Result<(), MyceliumError>- Stop daemonPeer Management
add_peer(&self, peer: PeerConfig) -> Result<(), MyceliumError>- Add peerremove_peer(&self, peer_id: &str) -> Result<(), MyceliumError>- Remove peerdiscover_peers(&self) -> Result<Vec<DiscoveredPeer>, MyceliumError>- Discover peersconnect_to_peer(&self, peer: PeerInfo) -> Result<(), MyceliumError>- Connect peerdisconnect_peer(&self, peer_id: &str) -> Result<(), MyceliumError>- Disconnect peerMetrics Collection
collect_metrics(&self) -> Result<NetworkMetrics, MyceliumError>- Collect metricsget_bandwidth_usage(&self) -> Result<BandwidthUsage, MyceliumError>- Get bandwidthget_latency_stats(&self) -> Result<LatencyStats, MyceliumError>- Get latencyget_connection_quality(&self, peer: &str) -> Result<QualityMetrics, MyceliumError>- Get qualityexport_prometheus_metrics(&self) -> Result<String, MyceliumError>- Export metricsRequirements
Implementation Details
already exists, but some are missing
if some elements missing in mycelium we can add it