github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/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 }