Skip to content

Commit 02de12f

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

31 files changed

+32
-0
lines changed

Diff for: 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",

Diff for: source-data/GeoIP2-IP-Risk-Test.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
[
2+
{
3+
"::214.2.3.0/126": {
4+
"ip_risk": 25,
5+
"is_anonymous": true,
6+
"is_anonymous_vpn": true
7+
}
8+
},
9+
{
10+
"::214.2.3.4/128": {
11+
"ip_risk": 50,
12+
"is_anonymous": true,
13+
"is_anonymous_vpn": true,
14+
"is_tor_exit_node": true
15+
}
16+
},
17+
{
18+
"::214.2.3.5/128": {
19+
"ip_risk": 90,
20+
"is_anonymous": true,
21+
"is_anonymous_vpn": true,
22+
"is_residential_proxy": true,
23+
"is_tor_exit_node": true
24+
}
25+
},
26+
{
27+
"::214.2.3.6/128": {
28+
"ip_risk": 85
29+
}
30+
}
31+
]

Diff for: test-data/GeoIP2-Anonymous-IP-Test.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/GeoIP2-City-Test.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/GeoIP2-Connection-Type-Test.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/GeoIP2-Country-Test.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/GeoIP2-DensityIncome-Test.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/GeoIP2-Domain-Test.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/GeoIP2-Enterprise-Test.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/GeoIP2-IP-Risk-Test.mmdb

3.02 KB
Binary file not shown.

Diff for: test-data/GeoIP2-ISP-Test.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/GeoIP2-Precision-Enterprise-Test.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/GeoIP2-Static-IP-Score-Test.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/GeoIP2-User-Count-Test.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/GeoLite2-ASN-Test.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/GeoLite2-City-Test.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/GeoLite2-Country-Test.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/MaxMind-DB-no-ipv4-search-tree.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/MaxMind-DB-string-value-entries.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/MaxMind-DB-test-decoder.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/MaxMind-DB-test-ipv4-24.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/MaxMind-DB-test-ipv4-28.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/MaxMind-DB-test-ipv4-32.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/MaxMind-DB-test-ipv6-24.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/MaxMind-DB-test-ipv6-28.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/MaxMind-DB-test-ipv6-32.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/MaxMind-DB-test-metadata-pointers.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/MaxMind-DB-test-mixed-24.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/MaxMind-DB-test-mixed-28.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/MaxMind-DB-test-mixed-32.mmdb

0 Bytes
Binary file not shown.

Diff for: test-data/MaxMind-DB-test-nested.mmdb

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)