Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenMaxmindDb ¶
OpenMaxmindDb will open the givenDbName from the default or givenDirectory and return the Reader object
func OutputLookup ¶
Types ¶
type IPInfo ¶
type IPInfo struct { IPStr string // given IP String or input IP net.IP // net.IP representation of the IP string or input ASNum int // Autonomous system number as int ASNumStr string // Autonomous system number as string prefixed with "AS" ASName string // Autonomous system name CountryCode string // ISO Country Code CountryName string // Country name }
IPInfo is the struct of enriched geoip info
Click to show internal directories.
Click to hide internal directories.