NewDefaultClientFactory a default initialization method for the factory
()
| 25 | |
| 26 | // NewDefaultClientFactory a default initialization method for the factory |
| 27 | func NewDefaultClientFactory() *DefaultClientFactory { |
| 28 | return &DefaultClientFactory{mtaClient: nil, restClient: nil} |
| 29 | } |
| 30 | |
| 31 | // NewMtaClient used for creating or returning cached value of the mta rest client |
| 32 | func (d *DefaultClientFactory) NewMtaClient(host, spaceID string, rt http.RoundTripper, tokenFactory baseclient.TokenFactory) mtaclient.MtaClientOperations { |