Versions in this module Expand all Collapse all v1 v1.5.2 Aug 14, 2017 v1.5.1 Jul 27, 2017 v1.5.0 Jul 19, 2017 Changes in this version + 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)