Documentation ¶
Index ¶
- Variables
- func IpInfoAsn(ip net.IP) (interface{}, error)
- func IpInfoCity(ip net.IP) (interface{}, error)
- func IpInfoCountry(ip net.IP) (interface{}, error)
- func IpInfoCountryAsn(ip net.IP) (interface{}, error)
- func IpInfoPrivacy(ip net.IP) (interface{}, error)
- func MaxMindAsn(ip net.IP) (interface{}, error)
- func MaxMindCity(ip net.IP) (interface{}, error)
- func MaxMindCountry(ip net.IP) (interface{}, error)
- func MaxMindPrivacy(ip net.IP) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var FUNC = FUNC_MAPPING[cnf.DB_TYPE].(map[string]interface{})
View Source
var FUNC_MAPPING = map[uint8]interface{}{ cnf.DB_TYPE_IPINFO: map[string]interface{}{ "country_asn": IpInfoCountryAsn, "country": IpInfoCountry, "city": IpInfoCity, "asn": IpInfoAsn, "privacy": IpInfoPrivacy, }, cnf.DB_TYPE_MAXMIND: map[string]interface{}{ "country_asn": nil, "country": MaxMindCountry, "city": MaxMindCity, "asn": MaxMindAsn, "privacy": MaxMindPrivacy, }, }
Functions ¶
func IpInfoCity ¶
func IpInfoCountry ¶
func IpInfoCountryAsn ¶
func IpInfoPrivacy ¶
func MaxMindAsn ¶
func MaxMindCity ¶
func MaxMindCountry ¶
func MaxMindPrivacy ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.