Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cloudflare/cloudflared
/ Current
Method
Current
connection/protocol.go:105–105 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
103
104
type
ProtocolSelector
interface
{
105
Current() Protocol
106
Fallback() (Protocol, bool)
107
}
108
Callers
9
TestNewProtocolSelector
Function · 0.95
TestAutoProtocolSelectorRefresh
Function · 0.95
TestHTTP2ProtocolSelectorRefresh
Function · 0.95
TestAutoProtocolSelectorNoRefreshWithToken
Function · 0.95
TestWaitForBackoffFallback
Function · 0.95
prepareTunnelConfig
Function · 0.95
initialize
Method · 0.65
Serve
Method · 0.65
selectNextProtocol
Function · 0.65
Implementers
3
staticProtocolSelector
connection/protocol.go
remoteProtocolSelector
connection/protocol.go
defaultProtocolSelector
connection/protocol.go
Calls
no outgoing calls
Tested by
5
TestNewProtocolSelector
Function · 0.76
TestAutoProtocolSelectorRefresh
Function · 0.76
TestHTTP2ProtocolSelectorRefresh
Function · 0.76
TestAutoProtocolSelectorNoRefreshWithToken
Function · 0.76
TestWaitForBackoffFallback
Function · 0.76