smobilpay.defaultClientConfig   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 6
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 6
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 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
	}
24
}
25