utils

package
v0.0.0-...-d02b376 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocationInfo

func GetLocationInfo(ip string, synth bool) (float64, float64)

return the lat, lon of the calling node

func GetPublicIP

func GetPublicIP() string

return the public of the calling node

Types

type GeoLocInfo

type GeoLocInfo struct {
	IP  string  `json:"ip"`
	Lat float64 `json:"latitude"`
	Lon float64 `json:"longitude"`
}

Jump to

Keyboard shortcuts

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