Documentation ¶
Index ¶
Constants ¶
View Source
const ( EIDGeoIP2City = EditionID("GeoIP2-City") EIDGeoIP2CityCSV = EditionID("GeoIP2-City-CSV") EIDGeoIP2Country = EditionID("GeoIP2-Country") EIDGeoIP2CountryCSV = EditionID("GeoIP2-Country-CSV") EIDGeoLite2ASN = EditionID("GeoLite2-ASN") EIDGeoLite2ASNCSV = EditionID("GeoLite2-ASN-CSV") EIDGeoLite2City = EditionID("GeoLite2-City") EIDGeoLite2CityCSV = EditionID("GeoLite2-City-CSV") EIDGeoLite2Country = EditionID("GeoLite2-Country") EIDGeoLite2CountryCSV = EditionID("GeoLite2-Country-CSV") )
Edition ID enum
View Source
const ( SfxTarGz = Suffix("tar.gz") SfxZip = Suffix("zip") )
Suffix enum
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents an active maxmind object
func (*Client) NewDownloader ¶ added in v0.2.1
func (c *Client) NewDownloader(eid EditionID, dlDir string) (*Downloader, error)
NewDownloader returns a new downloader instance
type Downloader ¶ added in v0.2.1
type Downloader struct { *Client // contains filtered or unexported fields }
Downloader represents an active downloader object
type EditionID ¶
type EditionID string
EditionID represents the edition ID of a database
func GetEditionID ¶
GetEditionID returns an edition ID from string
Click to show internal directories.
Click to hide internal directories.