client_config.go   A
last analyzed

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 12
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

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