Add new geoip metadata fields

This commit is contained in:
Daniel 2022-08-30 13:29:40 +02:00
parent 770ce61b84
commit 62729cc889

View file

@ -26,6 +26,9 @@ type Location struct {
Coordinates Coordinates `maxminddb:"location"` Coordinates Coordinates `maxminddb:"location"`
AutonomousSystemNumber uint `maxminddb:"autonomous_system_number"` AutonomousSystemNumber uint `maxminddb:"autonomous_system_number"`
AutonomousSystemOrganization string `maxminddb:"autonomous_system_organization"` AutonomousSystemOrganization string `maxminddb:"autonomous_system_organization"`
IsAnycast bool `maxminddb:"is_anycast"`
IsSatelliteProvider bool `maxminddb:"is_satellite_provider"`
IsAnonymousProxy bool `maxminddb:"is_anonymous_proxy"`
} }
// Coordinates holds geographic coordinates and their estimated accuracy. // Coordinates holds geographic coordinates and their estimated accuracy.