client_config.go   A
last analyzed

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 11
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

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