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

Struct coordinator

tailnet/coordinator.go:132–139  ·  view source on GitHub ↗

coordinator exchanges nodes with agents to establish connections entirely in-memory. The Enterprise implementation provides this for high-availability. ┌──────────────────┐ ┌────────────────────┐ ┌───────────────────┐ ┌──────────────────┐ │tailnet.Coordinate├──►│tailnet.AcceptClient│◄─►│tailne

Source from the content-addressed store, hash-verified

130// This coordinator is incompatible with multiple Coder replicas as all node
131// data is in-memory.
132type coordinator struct {
133 core *core
134
135 mu sync.Mutex
136 closed bool
137 wg sync.WaitGroup
138 closedChan chan struct{}
139}
140
141func (c *coordinator) Coordinate(
142 ctx context.Context, id uuid.UUID, name string, a CoordinateeAuth,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected