mobilenig.defaultClientConfig   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 7
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 7
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
package mobilenig
2
3
import (
4
	"net/http"
5
)
6
7
type clientConfig struct {
8
	httpClient  *http.Client
9
	environment Environment
10
	baseURL     string
11
	apiKey      string
12
	username    string
13
}
14
15
func defaultClientConfig() *clientConfig {
16
	return &clientConfig{
17
		httpClient:  http.DefaultClient,
18
		apiKey:      "",
19
		username:    "",
20
		baseURL:     apiBaseURL,
21
		environment: LiveEnvironment,
22
	}
23
}
24