InmemTailnetDialer is a tailnet.ControlProtocolDialer that connects to a Coordinator and DERPMap service running in the same memory space.
| 551 | // InmemTailnetDialer is a tailnet.ControlProtocolDialer that connects to a Coordinator and DERPMap |
| 552 | // service running in the same memory space. |
| 553 | type InmemTailnetDialer struct { |
| 554 | CoordPtr *atomic.Pointer[tailnet.Coordinator] |
| 555 | DERPFn func() *tailcfg.DERPMap |
| 556 | Logger slog.Logger |
| 557 | ClientID uuid.UUID |
| 558 | // DatabaseHealthCheck is used to validate that the store is reachable. |
| 559 | DatabaseHealthCheck Pinger |
| 560 | } |
| 561 | |
| 562 | func (a *InmemTailnetDialer) Dial(ctx context.Context, _ tailnet.ResumeTokenController) (tailnet.ControlProtocolClients, error) { |
| 563 | if a.DatabaseHealthCheck != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected