client_config.go   A
last analyzed

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A campay.defaultClientConfig 0 6 1
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