Skip to content

Commit d92e5e0

Browse files
committed
Add IP-Risk sample db
1 parent 679e37e commit d92e5e0

31 files changed

+27
-0
lines changed

pkg/writer/geoip2.go

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func (w *Writer) WriteGeoIP2TestDB() error {
2323
"GeoIP2-DensityIncome",
2424
"GeoIP2-Domain",
2525
"GeoIP2-Enterprise",
26+
"GeoIP2-IP-Risk",
2627
"GeoIP2-ISP",
2728
"GeoIP2-Precision-Enterprise",
2829
"GeoIP2-Static-IP-Score",

source-data/GeoIP2-IP-Risk-Test.json

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[
2+
{
3+
"::214.2.3.0/126": {
4+
"ip_risk": 0.1,
5+
"is_anonymous": true,
6+
"is_anonymous_vpn": true
7+
}
8+
},
9+
{
10+
"::214.2.3.4/128": {
11+
"is_anonymous": true,
12+
"is_anonymous_vpn": true,
13+
"is_tor_exit_node": true
14+
}
15+
},
16+
{
17+
"::214.2.3.5/128": {
18+
"is_anonymous": true,
19+
"is_anonymous_vpn": true,
20+
"is_hosting_provider": true,
21+
"is_public_proxy": true,
22+
"is_residential_proxy": true,
23+
"is_tor_exit_node": true
24+
}
25+
}
26+
]
0 Bytes
Binary file not shown.

test-data/GeoIP2-City-Test.mmdb

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

test-data/GeoIP2-Country-Test.mmdb

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

test-data/GeoIP2-Domain-Test.mmdb

0 Bytes
Binary file not shown.

test-data/GeoIP2-Enterprise-Test.mmdb

0 Bytes
Binary file not shown.

test-data/GeoIP2-IP-Risk-Test.mmdb

3.02 KB
Binary file not shown.

test-data/GeoIP2-ISP-Test.mmdb

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

test-data/GeoIP2-User-Count-Test.mmdb

0 Bytes
Binary file not shown.

test-data/GeoLite2-ASN-Test.mmdb

0 Bytes
Binary file not shown.

test-data/GeoLite2-City-Test.mmdb

0 Bytes
Binary file not shown.

test-data/GeoLite2-Country-Test.mmdb

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

test-data/MaxMind-DB-test-nested.mmdb

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)