Versions in this module Expand all Collapse all v1 v1.0.0 Mar 25, 2026 Changes in this version + func FormatResult(r *SimResult) string + type LinkConfig struct + Bandwidth int64 + From string + Latency time.Duration + LossRate float64 + To string + type Network struct + func NewNetwork(config *NetworkConfig) *Network + func (n *Network) SimulateTraffic(from, to string, pattern TrafficPattern) *SimResult + type NetworkConfig struct + Links []LinkConfig + Name string + Nodes []NodeConfig + type NodeConfig struct + ID string + IP string + Protocol string + Type string + type SimResult struct + AvgLatency time.Duration + Delivered int + DeliveryRate float64 + Dropped int + Error string + From string + To string + TotalPackets int + type TrafficPattern struct + Duration time.Duration + Rate int + Size int + Type string + type VirtualNode struct + Config NodeConfig + Dropped int64 + Received int64 + Sent int64