campay.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
dl 0
loc 6
rs 10
c 0
b 0
f 0
nop 0
1
package campay
2
3
import (
4
	"net/http"
5
)
6
7
type clientConfig struct {
8
	httpClient  *http.Client
9
	environment Environment
10
	apiPassword string
11
	apiUsername string
12
}
13
14
func defaultClientConfig() *clientConfig {
15
	return &clientConfig{
16
		httpClient:  http.DefaultClient,
17
		apiPassword: "",
18
		apiUsername: "",
19
		environment: ProdEnvironment,
20
	}
21
}
22