Versions in this module Expand all Collapse all v1 v1.0.2 Oct 26, 2020 v1.0.1 Nov 18, 2020 v1.0.0 Oct 26, 2020 v0 v0.0.3 Nov 18, 2020 v0.0.2 Nov 17, 2020 v0.0.1 Nov 16, 2020 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)