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

Function NewCoordinator

tailnet/coordinator.go:118–123  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

116// coordinator is incompatible with multiple Coder replicas as all node data is
117// in-memory.
118func 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.

Callers 15

NewFunction · 0.92
TestDialFailureFunction · 0.92
setupServerTailnetAgentFunction · 0.92
TestAgentsFunction · 0.92
TestCoordinatorFunction · 0.92
TestCoordinator_LostFunction · 0.92
RouterMethod · 0.92

Calls 2

newCoreFunction · 0.85
NamedMethod · 0.80