Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cloudflare/cloudflared
/ Release
Method
Release
flow/limiter.go:21–21 ·
view source on GitHub ↗
Release releases a slot for a flow.
()
Source
from the content-addressed store, hash-verified
19
Acquire(flowType string) error
20
// Release releases a slot for a flow.
21
Release()
22
// SetLimit allows to hot swap the limit value of the limiter.
23
SetLimit(uint64)
24
}
Callers
8
TestFlowLimiter_AcquireAndReleaseFlow
Function · 0.95
TestFlowLimiter_SetLimit
Function · 0.95
RegisterUdpSession
Method · 0.65
TestRateLimitOnNewDatagramV2UDPSession
Function · 0.65
TestRegisterSessionRateLimit
Function · 0.65
UnregisterSession
Method · 0.65
ProxyTCP
Method · 0.65
TestConnections
Function · 0.65
Implementers
3
flowLimiter
flow/limiter.go
MockLimiter
mocks/mock_limiter.go
MockLimiterMockRecorder
mocks/mock_limiter.go
Calls
no outgoing calls
Tested by
5
TestFlowLimiter_AcquireAndReleaseFlow
Function · 0.76
TestFlowLimiter_SetLimit
Function · 0.76
TestRateLimitOnNewDatagramV2UDPSession
Function · 0.52
TestRegisterSessionRateLimit
Function · 0.52
TestConnections
Function · 0.52