Passed
Push — main ( cad01e...53329a )
by Acho
02:26
created

client_config.go   A

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 13
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A afrikpay.defaultClientConfig 0 4 1
1
package afrikpay
2
3
import "net/http"
4
5
type clientConfig struct {
6
	httpClient    *http.Client
7
	baseURL       string
8
	apiKey        string
9
	agentID       string
10
	agentPlatform string
11
	agentPassword string
12
}
13
14
func defaultClientConfig() *clientConfig {
15
	return &clientConfig{
16
		httpClient: http.DefaultClient,
17
		baseURL:    "https://api.afrikpay.com",
18
	}
19
}
20