CAPIClient is a client for interacting with the Copilot API
| 24 | |
| 25 | // CAPIClient is a client for interacting with the Copilot API |
| 26 | type CAPIClient struct { |
| 27 | httpClient *http.Client |
| 28 | host string |
| 29 | capiBaseURL string |
| 30 | } |
| 31 | |
| 32 | // authConfig resolves the active token for a GitHub host, refreshing an expiring token when it is near expiry. |
| 33 | // It is satisfied by gh's AuthConfig and lets the transport obtain a fresh token on each request. |
nothing calls this directly
no outgoing calls
no test coverage detected