pollingDERPClient is a DERP client that just calls a function on a polling interval
| 597 | // pollingDERPClient is a DERP client that just calls a function on a polling |
| 598 | // interval |
| 599 | type pollingDERPClient struct { |
| 600 | fn func() *tailcfg.DERPMap |
| 601 | logger slog.Logger |
| 602 | ctx context.Context |
| 603 | cancel context.CancelFunc |
| 604 | loopDone chan struct{} |
| 605 | lastDERPMap *tailcfg.DERPMap |
| 606 | ch chan *tailcfg.DERPMap |
| 607 | } |
| 608 | |
| 609 | // Close the DERP client |
| 610 | func (a *pollingDERPClient) Close() error { |
nothing calls this directly
no outgoing calls
no test coverage detected