MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / remoteProtocolSelector

Struct remoteProtocolSelector

connection/protocol.go:123–136  ·  view source on GitHub ↗

remoteProtocolSelector will fetch a list of remote protocols to provide for edge discovery

Source from the content-addressed store, hash-verified

121
122// remoteProtocolSelector will fetch a list of remote protocols to provide for edge discovery
123type remoteProtocolSelector struct {
124 lock sync.RWMutex
125
126 current Protocol
127
128 // protocolPool is desired protocols in the order of priority they should be picked in.
129 protocolPool []Protocol
130
131 switchThreshold int32
132 fetchFunc edgediscovery.PercentageFetcher
133 refreshAfter time.Time
134 ttl time.Duration
135 log *zerolog.Logger
136}
137
138func newRemoteProtocolSelector(
139 current Protocol,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected