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

Struct pollingDERPClient

coderd/tailnet.go:599–607  ·  view source on GitHub ↗

pollingDERPClient is a DERP client that just calls a function on a polling interval

Source from the content-addressed store, hash-verified

597// pollingDERPClient is a DERP client that just calls a function on a polling
598// interval
599type 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
610func (a *pollingDERPClient) Close() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected