afrikpay.defaultClientConfig   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
package afrikpay
2
3
import "net/http"
4
5
type clientConfig struct {
6
	httpClient     *http.Client
7
	baseURL        string
8
	apiKey         string
9
	walletUsername string
10
	walletPassword string
11
	walletPin      string
12
}
13
14
func defaultClientConfig() *clientConfig {
15
	return &clientConfig{
16
		httpClient: http.DefaultClient,
17
		baseURL:    "https://api.developers.afrikpay.com",
18
	}
19
}
20