flutterwave.defaultClientConfig   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 5
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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