MCPcopy 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
75func NewIPLimiter() *IPLimiter {
76 return &IPLimiter{
77 records: make(map[string]*AccessRecord),
78 }
79}
80
81func (ir *IPLimiter) GetAccess(address string) bool {
82 ir.RLock()

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected