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
| 216 | // It does *not* handle adding any Tunnels, but these can be handled by composing |
| 217 | // BasicCoordinationController with a more advanced controller. |
| 218 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected