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

Struct BasicCoordination

tailnet/controllers.go:218–229  ·  view source on GitHub ↗

BasicCoordination handles: 1. Sending local node updates to the control plane 2. Reading remote updates from the control plane and programming them into the Coordinatee. It does *not* handle adding any Tunnels, but these can be handled by composing BasicCoordinationController with a more advanced

Source from the content-addressed store, hash-verified

216// It does *not* handle adding any Tunnels, but these can be handled by composing
217// BasicCoordinationController with a more advanced controller.
218type BasicCoordination struct {
219 sync.Mutex
220 closed bool
221 errChan chan error
222 coordinatee Coordinatee
223 logger slog.Logger
224 client CoordinatorClient
225 respLoopDone chan struct{}
226 sendAcks bool
227 initiator codersdk.DisconnectInitiator
228 direction codersdk.ConnectionDirection
229}
230
231// CloseClient forcibly closes the underlying coordinator client connection
232// without sending a graceful Disconnect message. Use this when you need to

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected