MCPcopy Index your code
hub / github.com/coder/coder / fakeWorkspaceProxyFetchUpdater

Struct fakeWorkspaceProxyFetchUpdater

coderd/healthcheck/workspaceproxy_test.go:233–236  ·  view source on GitHub ↗

yet another implementation of the thing

Source from the content-addressed store, hash-verified

231
232// yet another implementation of the thing
233type fakeWorkspaceProxyFetchUpdater struct {
234 fetchFunc func(context.Context) (codersdk.RegionsResponse[codersdk.WorkspaceProxy], error)
235 updateFunc func(context.Context) error
236}
237
238func (u *fakeWorkspaceProxyFetchUpdater) Fetch(ctx context.Context) (codersdk.RegionsResponse[codersdk.WorkspaceProxy], error) {
239 return u.fetchFunc(ctx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected