CAPIClient is a client for interacting with the Copilot API
| 22 | |
| 23 | // CAPIClient is a client for interacting with the Copilot API |
| 24 | type CAPIClient struct { |
| 25 | httpClient *http.Client |
| 26 | host string |
| 27 | capiBaseURL string |
| 28 | } |
| 29 | |
| 30 | // NewCAPIClient creates a new CAPI client. Provide a token, the user's GitHub |
| 31 | // host, the resolved Copilot API URL, and an HTTP client which will be used as |
nothing calls this directly
no outgoing calls
no test coverage detected