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

Struct updater

vpn/tunnel.go:327–343  ·  view source on GitHub ↗

updater is the component of the tunnel responsible for sending workspace updates to the manager.

Source from the content-addressed store, hash-verified

325// updater is the component of the tunnel responsible for sending workspace
326// updates to the manager.
327type updater struct {
328 ctx context.Context
329 cancel context.CancelFunc
330 netLoopDone chan struct{}
331
332 logger slog.Logger
333
334 mu sync.Mutex
335 uSendCh chan<- *TunnelMessage
336 // agents contains the agents that are currently connected to the tunnel.
337 agents map[uuid.UUID]agentWithPing
338 // workspaces contains the workspaces to which agents are currently connected via the tunnel.
339 workspaces map[uuid.UUID]tailnet.Workspace
340 conn Conn
341
342 clock quartz.Clock
343}
344
345type agentWithPing struct {
346 tailnet.Agent

Callers 5

setStateFunction · 0.50
updateSidebarChatFunction · 0.50
updateInfiniteChatsCacheFunction · 0.50
updateChildInParentCacheFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected