Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/APIParkLab/APIPark
/ newIpFilter
Function
newIpFilter
strategy-filter/ip.go:22–29 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
20
}
21
22
func
newIpFilter() *ipFilter {
23
return
&ipFilter{
24
name:
"ip"
,
25
title:
"IP"
,
26
typ: TypePattern,
27
pattern: regexp.MustCompile(CIDRIpv4Exp),
28
}
29
}
30
31
func
(i *ipFilter) Name() string {
32
return
i.name
Callers
1
init
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected