func NewClient(addr string, dialer Dialer) (*Client, error) {
	var params []roundtrip.ClientParam

	if dialer == nil {
		dialer = net.Dial
	}
	transport := &http.Transport{Dial: dialer}
	params = append(params, roundtrip.HTTPClient(&http.Client{
		Transport: transport,
	}))

	c, err := roundtrip.NewClient(addr, CurrentVersion, params...)
	if err != nil {
		return nil, err
	}
	return &Client{
		Client:    *c,
		transport: transport,
	}, nil
}
// NewAuthClient returns a new instance of the client which talks to
// an Auth server API (aka "site API") via HTTP-over-SSH
NewAuthClient returns a new instance of the client which talks to
an Auth server API (aka "site API") via HTTP-over-SSH
// NewAuthClient returns a new instance of the client which talks to // an Auth server API ( aka " site API " ) via HTTP - over - SSH
func NewClient(addr string, dialer Dialer) (*Client, error) {
	var params []roundtrip.ClientParam
	if dialer == nil {
		dialer = net.Dial
	}
	transport := &http.Transport{Dial: dialer}
	params = append(params, roundtrip.HTTPClient(&http.Client{
		Transport: transport,
	}))
	c, err := roundtrip.NewClient(addr, CurrentVersion, params...)
	if err != nil {
		return nil, err
	}
	return &Client{
		Client:    *c,
		transport: transport,
	}, nil
}
func NewClient ( addr string , dialer Dialer ) ( * Client , error ) { var params [ ] roundtrip . ClientParam if dialer == nil { dialer = net . Dial } transport := & http . Transport { Dial : dialer } params = append ( params , roundtrip . HTTPClient ( & http . Client { Transport : transport , } ) ) c , err := roundtrip . NewClient ( addr , CurrentVersion , params ... ) if err != nil { return nil , err } return & Client { Client : * c , transport : transport , } , nil }
NewAuthClient returns a new instance of the client which talks to
an Auth server API (aka "site API") via HTTP-over-SSH
NewAuthClient returns a new instance of the client which talks to an Auth server API ( aka " site API " ) via HTTP - over - SSH