coordinator exchanges nodes with agents to establish connections entirely in-memory. The Enterprise implementation provides this for high-availability. ┌──────────────────┐ ┌────────────────────┐ ┌───────────────────┐ ┌──────────────────┐ │tailnet.Coordinate├──►│tailnet.AcceptClient│◄─►│tailne
| 130 | // This coordinator is incompatible with multiple Coder replicas as all node |
| 131 | // data is in-memory. |
| 132 | type coordinator struct { |
| 133 | core *core |
| 134 | |
| 135 | mu sync.Mutex |
| 136 | closed bool |
| 137 | wg sync.WaitGroup |
| 138 | closedChan chan struct{} |
| 139 | } |
| 140 | |
| 141 | func (c *coordinator) Coordinate( |
| 142 | ctx context.Context, id uuid.UUID, name string, a CoordinateeAuth, |
nothing calls this directly
no outgoing calls
no test coverage detected