Versions in this module Expand all Collapse all v0 v0.1.0 Jan 1, 2020 Changes in this version + var ErrUnavailable = errors.New("no database available") + var MaxMindDB = "http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz" + func MaxMindUpdateURL(hostname, productID, userID, licenseKey string) (string, error) + type DB struct + func Open(dsn string) (*DB, error) + func OpenURL(url string, updateInterval, maxRetryInterval time.Duration) (*DB, error) + func (db *DB) Close() + func (db *DB) Date() time.Time + func (db *DB) Lookup(addr net.IP, result interface{}) error + func (db *DB) NotifyClose() <-chan struct{} + func (db *DB) NotifyError() (errChan <-chan error) + func (db *DB) NotifyInfo() <-chan string + func (db *DB) NotifyOpen() (filename <-chan string) + type DefaultQuery struct + City struct{ ... } + Continent struct{ ... } + Country struct{ ... } + Location struct{ ... } + Postal struct{ ... } + Region []struct{ ... } Incompatible versions in this module v3.5.0+incompatible Apr 5, 2018