Documentation
¶
Index ¶
- func FlatMap() (flatmap *sm.Context)
- func FlatMapAddMarker(flatmap *sm.Context, lat float64, lon float64)
- func FlatMapRender(flatmap *sm.Context) (err error)
- func GetLatLon(ipAddress string) (lat float64, lon float64, country string, err error)
- func GetLocalIPv4(iface string) (ifaceip net.IP)
- func GlobeMap() (globemap *globe.Globe)
- func GlobeMapAddMarker(globemap *globe.Globe, lat float64, lon float64)
- func GlobeMapRender(globemap *globe.Globe, myWanLat float64, myWanLon float64)
- func SetCountriesNumber(countryName string)
- type GeoLocation
- type NodeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlatMapAddMarker ¶
FlatMapAddMarker - Add markers in the flatmap
func FlatMapRender ¶
func FlatMapRender(flatmap *sm.Context) (err error)
FlatMapRender - Render the image for the flat map
func GetLocalIPv4 ¶
GetLocalIPv4 - Return the local machine WAN ip
func GlobeMapAddMarker ¶
GlobeMapAddMarker - Add markers in the globemap
func GlobeMapRender ¶
GlobeMapRender - Render the image for the globe map
func SetCountriesNumber ¶
func SetCountriesNumber(countryName string)
SetCountriesNumber - Create a map and set the number of nodes in each country
Types ¶
type GeoLocation ¶
type GeoLocation struct { As string `json:"as"` City string `json:"city"` Country string `json:"country"` CountryCode string `json:"countryCode"` Isp string `json:"isp"` Lat float64 `json:"lat"` Lon float64 `json:"lon"` Org string `json:"org"` Query string `json:"query"` Region string `json:"region"` RegionName string `json:"regionName"` Status string `json:"status"` Timezone string `json:"timezone"` Zip string `json:"zip"` }
GeoLocation - Get info from https://ip-api.com
Click to show internal directories.
Click to hide internal directories.