// ClientFactoryForInterface returns a http.Client factory that connects
// from the given interface.
ClientFactoryForInterface returns a http.Client factory that connects
from the given interface.
// ClientFactoryForInterface returns a http . Client factory that connects // from the given interface .
func ClientFactoryForInterface(netInterface string, timeoutFactor uint64) (HTTPClientFactoryFunc, error) {
	sourceAddr, err := getSourceAddr(netInterface)
	if err != nil {
		return nil, err
	}
	factory := func() *http.Client {
		return newHTTPClient(sourceAddr, timeoutFactor)
	}
	return factory, err
}
func ClientFactoryForInterface ( netInterface string , timeoutFactor uint64 ) ( HTTPClientFactoryFunc , error ) { sourceAddr , err := getSourceAddr ( netInterface ) if err != nil { return nil , err } factory := func ( ) * http . Client { return newHTTPClient ( sourceAddr , timeoutFactor ) } return factory , err }
ClientFactoryForInterface returns a http.Client factory that connects
from the given interface.
ClientFactoryForInterface returns a http . Client factory that connects from the given interface .