MCPcopy
hub / github.com/cloudflare/cloudflared / Get

Method Get

packet/funnel.go:104–109  ·  view source on GitHub ↗
(id FunnelID)

Source from the content-addressed store, hash-verified

102}
103
104func (ft *FunnelTracker) Get(id FunnelID) (Funnel, bool) {
105 ft.lock.RLock()
106 defer ft.lock.RUnlock()
107 funnel, ok := ft.funnels[id]
108 return funnel, ok
109}
110
111// Registers a funnel. If the `id` is already registered and `shouldReplaceFunc` returns true, it closes and replaces
112// the current funnel. If `newFunnelFunc` returns an error, the `id` will remain unregistered, even if it was registered

Callers 15

ServeHTTPMethod · 0.80
isControlStreamUpgradeFunction · 0.80
isWebsocketUpgradeFunction · 0.80
isConfigurationUpdateFunction · 0.80
IsTCPStreamFunction · 0.80
setContentLengthFunction · 0.80
AckConnectionMethod · 0.80
shouldFlushFunction · 0.80
FindCfRayHeaderFunction · 0.80
TestServeHTTPFunction · 0.80
TestServeWSFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestServeHTTPFunction · 0.64
TestServeWSFunction · 0.64
TestServeTCP_RateLimitedFunction · 0.64
getFunnelFunction · 0.64
getFunnelFunction · 0.64
testProxyHTTPFunction · 0.64
TestWebsocketHeadersFunction · 0.64
TestServeFunction · 0.64
TestWebsocketWrapperFunction · 0.64