sdkAppStatusUpdater is the concrete implementation of the appStatusUpdater interface. It dials the Agent dRPC endpoint once during initialize and reuses the connection for all subsequent UpdateAppStatus calls.
| 114 | // during initialize and reuses the connection for all subsequent |
| 115 | // UpdateAppStatus calls. |
| 116 | type sdkAppStatusUpdater struct { |
| 117 | drpcClient agentproto.DRPCAgentClient28 |
| 118 | url *url.URL |
| 119 | httpClient *http.Client |
| 120 | } |
| 121 | |
| 122 | // newAppStatusUpdater creates a new appStatusUpdater implementation. |
| 123 | func newAppStatusUpdater(client *codersdk.Client) appStatusUpdater { |
nothing calls this directly
no outgoing calls
no test coverage detected