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

Method SetAgentAPI

agent/agentsocket/server.go:126–128  ·  view source on GitHub ↗

SetAgentAPI sets the agent API client used to forward requests to coderd.

(api agentproto.DRPCAgentClient28)

Source from the content-addressed store, hash-verified

124// SetAgentAPI sets the agent API client used to forward requests
125// to coderd.
126func (s *Server) SetAgentAPI(api agentproto.DRPCAgentClient28) {
127 s.service.SetAgentAPI(api)
128}
129
130// ClearAgentAPI clears the agent API client.
131func (s *Server) ClearAgentAPI() {

Callers 2

runMethod · 0.45

Calls

no outgoing calls

Tested by 1