client_config.go   A
last analyzed

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 15
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A orangemoney.defaultClientConfig 0 7 1
1
package orangemoney
2
3
import "net/http"
4
5
type clientConfig struct {
6
	httpClient *http.Client
7
	username   string
8
	password   string
9
	baseURL    string
10
	authToken  string
11
}
12
13
func defaultClientConfig() *clientConfig {
14
	return &clientConfig{
15
		httpClient: http.DefaultClient,
16
		username:   "",
17
		password:   "",
18
		authToken:  "",
19
		baseURL:    "https://api-s1.orange.cm",
20
	}
21
}
22