ClientFactory is a factory for creating XxxClientOperations instances
| 11 | |
| 12 | // ClientFactory is a factory for creating XxxClientOperations instances |
| 13 | type ClientFactory interface { |
| 14 | NewMtaClient(host, spaceID string, rt http.RoundTripper, tokenFactory baseclient.TokenFactory) mtaclient.MtaClientOperations |
| 15 | NewRestClient(host string, rt http.RoundTripper, tokenFactory baseclient.TokenFactory) restclient.RestClientOperations |
| 16 | NewMtaV2Client(host, spaceGUID string, rt http.RoundTripper, tokenFactory baseclient.TokenFactory) mtaclient_v2.MtaV2ClientOperations |
| 17 | } |
| 18 | |
| 19 | // DefaultClientFactory a default implementation of the ClientFactory |
| 20 | type DefaultClientFactory struct { |
no outgoing calls
no test coverage detected