NewCoordinator constructs a new in-memory connection coordinator. This coordinator is incompatible with multiple Coder replicas as all node data is in-memory.
(logger slog.Logger)
| 116 | // coordinator is incompatible with multiple Coder replicas as all node data is |
| 117 | // in-memory. |
| 118 | func NewCoordinator(logger slog.Logger) Coordinator { |
| 119 | return &coordinator{ |
| 120 | core: newCore(logger.Named(LoggerName)), |
| 121 | closedChan: make(chan struct{}), |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | // coordinator exchanges nodes with agents to establish connections entirely in-memory. |
| 126 | // The Enterprise implementation provides this for high-availability. |