package
Version:
v0.0.0-...-266a499
Opens a new window with list of versions in this module.
Published: May 2, 2024
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
DigitaloceanDownloadURL = "https://www.digitalocean.com/geo/google.csv"
)
type CSVEntry struct {
Network string `csv:"network,omitempty"`
CountryCode string `csv:"countrycode,omitempty"`
CityCode string `csv:"citycode,omitempty"`
CityName string `csv:"cityname,omitempty"`
ZipCode string `csv:"zipcode,omitempty"`
}
type DigitalOcean struct {
Client *retryablehttp.Client
DownloadURL string
}
type Entry struct {
Network string `csv:"network,omitempty"`
CountryCode string `csv:"countrycode,omitempty"`
CityCode string `csv:"citycode,omitempty"`
CityName string `csv:"cityname,omitempty"`
ZipCode string `csv:"zipcode,omitempty"`
}
type Record struct {
Network netip.Prefix
NetworkText string `csv:"network,omitempty"`
CountryCode string `csv:"countrycode,omitempty"`
CityCode string `csv:"citycode,omitempty"`
CityName string `csv:"cityname,omitempty"`
ZipCode string `csv:"zipcode,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.