Total Lines | 15 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | package mollie |
||
2 | |||
3 | // Config contains information that helps during the setup of a new Mollie client. |
||
4 | type Config struct { |
||
5 | testing bool |
||
6 | auth string |
||
7 | } |
||
8 | |||
9 | //NewConfig build a Mollie configuration object, |
||
10 | // it takes t to indicate if our client is meant to create requests for testing |
||
11 | // and auth to indicate the authentication method we want to use. |
||
12 | func NewConfig(t bool, auth string) *Config { |
||
13 | 1 | return &Config{ |
|
14 | testing: t, |
||
15 | auth: auth, |
||
16 | } |
||
18 |