Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is returned when City lookups return no results. ErrNotFound = errors.New("no results found during lookup") )
Functions ¶
This section is empty.
Types ¶
type Maxmind ¶
type Maxmind struct { Maxmind *geoip2.Reader // contains filtered or unexported fields }
Maxmind manages access to the maxmind database.
func NewMaxmind ¶
NewMaxmind creates a new Maxmind instance which loads data from the given content.Provider. Callers must call Reload() at least once on the returned Maxmind instance before calling City().
Click to show internal directories.
Click to hide internal directories.