vendor: update all dependencies
This commit is contained in:
parent
d1a39dcc4b
commit
af192d2507
232 changed files with 15744 additions and 1710 deletions
11
vendor/github.com/koofr/go-koofrclient/client.go
generated
vendored
11
vendor/github.com/koofr/go-koofrclient/client.go
generated
vendored
|
@ -23,17 +23,22 @@ func NewKoofrClient(baseUrl string, disableSecurity bool) *KoofrClient {
|
|||
httpClient = httpclient.New()
|
||||
}
|
||||
|
||||
return NewKoofrClientWithHTTPClient(baseUrl, httpClient)
|
||||
}
|
||||
|
||||
func NewKoofrClientWithHTTPClient(baseUrl string, httpClient *httpclient.HTTPClient) *KoofrClient {
|
||||
apiBaseUrl, _ := url.Parse(baseUrl)
|
||||
|
||||
httpClient.BaseURL = apiBaseUrl
|
||||
|
||||
httpClient.Headers.Set("User-Agent", "go koofrclient")
|
||||
|
||||
return &KoofrClient{
|
||||
client:= &KoofrClient{
|
||||
HTTPClient: httpClient,
|
||||
token: "",
|
||||
userID: "",
|
||||
}
|
||||
|
||||
client.SetUserAgent("go koofrclient")
|
||||
return client
|
||||
}
|
||||
|
||||
func (c *KoofrClient) SetUserAgent(ua string) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue