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

Struct Client

agent/agenttest/client.go:99–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99type Client struct {
100 t testing.TB
101 logger slog.Logger
102 agentID uuid.UUID
103 server *drpcserver.Server
104 fakeAgentAPI *FakeAgentAPI
105 LastWorkspaceAgent func()
106
107 mu sync.Mutex // Protects following.
108 logs []agentsdk.Log
109 derpMapUpdates chan *tailcfg.DERPMap
110 derpMapOnce sync.Once
111 refreshTokenCalls int
112}
113
114func (*Client) AsRequestOption() codersdk.RequestOption {
115 return func(_ *http.Request) {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected