mirror of
https://github.com/passbolt/go-passbolt.git
synced 2025-05-10 01:48:22 +00:00
Update Comment
This commit is contained in:
parent
ff1be787f2
commit
1c615fb145
1 changed files with 3 additions and 1 deletions
|
@ -33,7 +33,9 @@ type Client struct {
|
||||||
Debug bool
|
Debug bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewClient Returns a new Passbolt Client
|
// NewClient Returns a new Passbolt Client.
|
||||||
|
// if httpClient is nil http.DefaultClient will be used.
|
||||||
|
// if UserAgent is "" "goPassboltClient/1.0" will be used.
|
||||||
func NewClient(BaseURL *url.URL, httpClient *http.Client, UserAgent, UserPrivateKey, UserPassword string) (*Client, error) {
|
func NewClient(BaseURL *url.URL, httpClient *http.Client, UserAgent, UserPrivateKey, UserPassword string) (*Client, error) {
|
||||||
if httpClient == nil {
|
if httpClient == nil {
|
||||||
httpClient = http.DefaultClient
|
httpClient = http.DefaultClient
|
||||||
|
|
Loading…
Add table
Reference in a new issue