Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package mobilenig |
||
2 | |||
3 | import ( |
||
4 | "net/http" |
||
5 | ) |
||
6 | |||
7 | type clientConfig struct { |
||
8 | httpClient *http.Client |
||
9 | environment Environment |
||
10 | baseURL string |
||
11 | apiKey string |
||
12 | username string |
||
13 | } |
||
14 | |||
15 | func defaultClientConfig() *clientConfig { |
||
16 | return &clientConfig{ |
||
17 | httpClient: http.DefaultClient, |
||
18 | apiKey: "", |
||
19 | username: "", |
||
20 | baseURL: apiBaseURL, |
||
21 | environment: LiveEnvironment, |
||
22 | } |
||
24 |