lemonsqueezy.defaultClientConfig   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
package lemonsqueezy
2
3
import "net/http"
4
5
type clientConfig struct {
6
	httpClient    *http.Client
7
	baseURL       string
8
	apiKey        string
9
	signingSecret string
10
}
11
12
func defaultClientConfig() *clientConfig {
13
	return &clientConfig{
14
		httpClient: http.DefaultClient,
15
		baseURL:    "https://api.lemonsqueezy.com",
16
	}
17
}
18