client_config.go   A
last analyzed

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 14
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

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