Versions in this module Expand all Collapse all v1 v1.0.0 Jun 24, 2021 Changes in this version + var LAN = Network + var Local = Network + var Longhaul = Network + var WAN = Network + type ContextDialer func(ctx context.Context, network, address string) (net.Conn, error) + type Dialer func(network, address string) (net.Conn, error) + type Network struct + Kbps int + Latency time.Duration + MTU int + func (n *Network) Conn(c net.Conn) (net.Conn, error) + func (n *Network) ContextDialer(d ContextDialer) ContextDialer + func (n *Network) Dialer(d Dialer) Dialer + func (n *Network) Listener(l net.Listener) net.Listener + func (n *Network) TimeoutDialer(d TimeoutDialer) TimeoutDialer + type TimeoutDialer func(network, address string, timeout time.Duration) (net.Conn, error)