bambou/session.go
func NewSession(username, password, organization, url string, root Rootable) *Session {

	tr := &http.Transport{
		Proxy:               http.ProxyFromEnvironment,
		TLSHandshakeTimeout: 10 * time.Second,
		TLSClientConfig: &tls.Config{
			InsecureSkipVerify: true,
		},
	}

	return &Session{
		Username:     username,
		Password:     password,
		Organization: organization,
		URL:          url,
		root:         root,
		client:       &http.Client{Transport: tr},
	}
}
func NewSession(username, password, organization, url string, root Rootable) *Session {

	tr := &http.Transport{
		Proxy:               http.ProxyFromEnvironment,
		TLSHandshakeTimeout: 10 * time.Second,
		TLSClientConfig: &tls.Config{
			InsecureSkipVerify: true,
		},
	}

	return &Session{
		Username:     username,
		Password:     password,
		Organization: organization,
		URL:          url,
		root:         root,
		client:       &http.Client{Transport: tr},
	}
}
func NewSession ( username , password , organization , url string , root Rootable ) * Session { tr := & http . Transport { Proxy : http . ProxyFromEnvironment , TLSHandshakeTimeout : 10 * time . Second , TLSClientConfig : & tls . Config { InsecureSkipVerify : true , } , } return & Session { Username : username , Password : password , Organization : organization , URL : url , root : root , client : & http . Client { Transport : tr } , } }
// NewSession returns a new *Session
// You need to provide a Rootable object that will be used to contain
// the results of the authentication process, like the api key for instance.
// Authentication using user + password
NewSession returns a new * Session You need to provide a Rootable object that will be used to contain the results of the authentication process like the api key for instance . Authentication using user + password