MCPcopy Create free account

hub / github.com/abh/geoip / functions

Functions25 in github.com/abh/geoip

↓ 12 callersMethodfree
()
geoip.go:35
↓ 5 callersMethodGetCountry
Takes an IPv4 address string and returns the country code for that IP and the netmask for that IP range.
geoip.go:301
↓ 5 callersFunctionOpen
Default convenience wrapper around OpenDb
geoip.go:49
↓ 2 callersMethodGetName
Works on the ASN, Netspeed, Organization and probably other databases, takes and IP string and returns a "name" and the netmask.
geoip.go:152
↓ 2 callersMethodGetRecord
Returns the "City Record" for an IP address. Requires the GeoCity(Lite) database - http://www.maxmind.com/en/city
geoip.go:190
↓ 2 callersFunctionGetRegionName
Returns the region name given a country code and region code
geoip.go:258
↓ 2 callersFunctiontest4
(g *geoip.GeoIP, ip string)
ex/geoip-demo.go:58
↓ 1 callersMethodGetCountry_v6
GetCountry_v6 works the same as GetCountry except for IPv6 addresses, be sure to load a database with IPv6 data to get any results.
geoip.go:323
↓ 1 callersMethodGetNameV6
Same as GetName() but for IPv6 addresses.
geoip.go:278
↓ 1 callersMethodGetRegion
Returns the country code and region code for an IP address. Requires the GeoIP Region database.
geoip.go:234
↓ 1 callersFunctionOpenDb
Opens a GeoIP database by filename with specified GeoIPOptions flag. All formats supported by libgeoip are supported though there are only functions t
geoip.go:58
↓ 1 callersFunctionOpenType
OpenType opens a specified GeoIP database type in the default location and the 'memory cache' flag. Use OpenTypeFlag() to specify flag.
geoip.go:138
↓ 1 callersFunctionOpenTypeFlag
OpenType opens a specified GeoIP database type in the default location with the specified GeoIPOptions flag. Constants are defined for each database t
geoip.go:116
↓ 1 callersFunctionSetCustomDirectory
SetCustomDirectory sets the default location for the GeoIP .dat files used when calling OpenType()
geoip.go:106
↓ 1 callersFunctiontest
(f func(string) (string, int), ip string)
ex/geoip-demo.go:62
MethodBenchmark_GetCountry
(c *C)
geoip_test.go:48
MethodBenchmark_GetRecord
(c *C)
geoip_test.go:91
MethodGetOrg
Takes an IPv4 address string and returns the organization name for that IP. Requires the GeoIP organization database.
geoip.go:144
FunctionTest
Hook up gocheck into the gotest runner.
geoip_test.go:11
MethodTestOpenType
(c *C)
geoip_test.go:36
MethodTestRegionName
(c *C)
geoip_test.go:119
MethodTestv4
(c *C)
geoip_test.go:18
MethodTestv4Record
(c *C)
geoip_test.go:60
MethodTestv4Region
(c *C)
geoip_test.go:107
Functionmain
()
ex/geoip-demo.go:9