client_config.go   A
last analyzed

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A ynote.defaultClientConfig 0 5 1
1
package ynote
2
3
import "net/http"
4
5
type clientConfig struct {
6
	httpClient     *http.Client
7
	customerKey    string
8
	customerSecret string
9
	clientID       string
10
	clientSecret   string
11
	tokenURL       string
12
	apiURL         string
13
}
14
15
func defaultClientConfig() *clientConfig {
16
	return &clientConfig{
17
		httpClient: http.DefaultClient,
18
		tokenURL:   "https://omapi-token.ynote.africa",
19
		apiURL:     "https://omapi.ynote.africa",
20
	}
21
}
22