geoplugin

package module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Geoip

type Geoip struct {
	Request                string `json:"geoplugin_request"`
	Status                 int    `json:"geoplugin_status"`
	Delay                  string `json:"geoplugin_delay"`
	Dredit                 string `json:"geoplugin_credit"`
	City                   string `json:"geoplugin_city"`
	Region                 string `json:"geoplugin_region"`
	RegionCode             string `json:"geoplugin_regionCode"`
	RegionName             string `json:"geoplugin_regionName"`
	AreaCode               string `json:"geoplugin_areaCode"`
	DmaCode                string `json:"geoplugin_dmaCode"`
	CountryCode            string `json:"geoplugin_countryCode"`
	CountryName            string `json:"geoplugin_countryName"`
	InEU                   int    `json:"geoplugin_inEU"`
	EuVATrate              bool   `json:"geoplugin_euVATrate"`
	ContinentCode          string `json:"geoplugin_continentCode"`
	ContinentName          string `json:"geoplugin_continentName"`
	Latitude               string `json:"geoplugin_latitude"`
	Longitude              string `json:"geoplugin_longitude"`
	LocationAccuracyRadius string `json:"geoplugin_locationAccuracyRadius"`
	Timezone               string `json:"geoplugin_timezone"`
	CurrencyCode           string `json:"geoplugin_currencyCode"`
	CurrencySymbol         string `json:"geoplugin_currencySymbol"`
	CurrencySymbolUTF8     string `json:"geoplugin_currencySymbol_UTF8"`
	CurrencyConverter      int    `json:"geoplugin_currencyConverter"`
}

Geoip data coming from http://www.geoplugin.net/json.gp

func GetGeoIP

func GetGeoIP() (Geoip, error)

GetGeoIP function gets IP struct from Geoip

func (Geoip) Print

func (ip Geoip) Print()

Print a Geoip struct

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL