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

Struct InmemTailnetDialer

coderd/tailnet.go:553–560  ·  view source on GitHub ↗

InmemTailnetDialer is a tailnet.ControlProtocolDialer that connects to a Coordinator and DERPMap service running in the same memory space.

Source from the content-addressed store, hash-verified

551// InmemTailnetDialer is a tailnet.ControlProtocolDialer that connects to a Coordinator and DERPMap
552// service running in the same memory space.
553type 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
562func (a *InmemTailnetDialer) Dial(ctx context.Context, _ tailnet.ResumeTokenController) (tailnet.ControlProtocolClients, error) {
563 if a.DatabaseHealthCheck != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected