Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package smobilpay |
||
2 | |||
3 | import ( |
||
4 | "net/http" |
||
5 | "time" |
||
6 | ) |
||
7 | |||
8 | type clientConfig struct { |
||
9 | httpClient *http.Client |
||
10 | collectSyncVerifyInterval time.Duration |
||
11 | collectSyncVerifyRetryCount uint |
||
12 | baseURL string |
||
13 | accessToken string |
||
14 | accessSecret string |
||
15 | } |
||
16 | |||
17 | func defaultClientConfig() *clientConfig { |
||
18 | return &clientConfig{ |
||
19 | httpClient: http.DefaultClient, |
||
20 | collectSyncVerifyInterval: 20 * time.Second, |
||
21 | collectSyncVerifyRetryCount: 15, |
||
22 | baseURL: "https://s3p.smobilpay.staging.maviance.info/v2", |
||
23 | } |
||
25 |