github.com/Cloud-Foundations/Dominator@v0.3.4/lib/net/proxy/api.go (about) 1 package proxy 2 3 import ( 4 "net" 5 ) 6 7 // Dialer defines a dialer that can be use to create connections. 8 type Dialer interface { 9 Dial(network, address string) (net.Conn, error) 10 } 11 12 func NewDialer(proxy string, dialer *net.Dialer) (Dialer, error) { 13 return newDialer(proxy, dialer) 14 }