MCPcopy Create free account
hub / github.com/coder/coder / sdkAppStatusUpdater

Struct sdkAppStatusUpdater

scaletest/taskstatus/client.go:116–120  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

114// during initialize and reuses the connection for all subsequent
115// UpdateAppStatus calls.
116type sdkAppStatusUpdater struct {
117 drpcClient agentproto.DRPCAgentClient28
118 url *url.URL
119 httpClient *http.Client
120}
121
122// newAppStatusUpdater creates a new appStatusUpdater implementation.
123func newAppStatusUpdater(client *codersdk.Client) appStatusUpdater {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected