Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PuerNya/git-proxy
/ NewIPLimiter
Function
NewIPLimiter
main.go:75–79 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
73
}
74
75
func
NewIPLimiter() *IPLimiter {
76
return
&IPLimiter{
77
records: make(
map
[string]*AccessRecord),
78
}
79
}
80
81
func
(ir *IPLimiter) GetAccess(address string) bool {
82
ir.RLock()
Callers
1
run
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected