github.com/cloud-foundations/dominator@v0.0.0-20221004181915-6e4fee580046/lib/net/rpc/api.go (about) 1 package rpc 2 3 import ( 4 "net/rpc" 5 6 "github.com/Cloud-Foundations/Dominator/lib/net" 7 ) 8 9 // DialHTTPPath works like DialHTTPPath in net/rpc but accepts a custom 10 // dialer. 11 func DialHTTPPath(dialer net.Dialer, network, address, path string) ( 12 *rpc.Client, error) { 13 return dialHTTPPath(dialer, network, address, path) 14 } 15 16 // Dial works like Dial in net/rpc but accepts a custom dialer. 17 func Dial(dialer net.Dialer, network, address string) (*rpc.Client, error) { 18 return dial(dialer, network, address) 19 }