client_config.go   A
last analyzed

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 16
dl 0
loc 21
rs 10
c 0
b 0
f 0

1 Method

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