package
0.0.0-20240212123749-cf5c52f3f59c
Repository: https://github.com/orcfax/node-id.git
Documentation: pkg.go.dev
# Functions
Exists returns true if the identity file exists, otherwise false.
GetIdentity is a convenience function to help construct an identity object.
IPInfoDefault returns the default core structure from IP Info.
IPInfoSimple provides a simplified summary of the IP Info properties.
LoadCache loads the cached summary from the default location on the filesystem.
# Structs
Identity is an object that provides as much information about the
hardware running this code.
IPInfoSimpleSummary helps us to construct a simplified object that
looks as follows:
"location": {
"ip": "170.64.189.192",
"city": "Sydney",
"region": "New South Wales",
"country": "AU",
"loc": "-33.9092,151.1940",
"org": "AS14061 DigitalOcean, LLC",
"postal": "2015",
"timezone": "Australia/Sydney",
"readme": "https://ipinfo.io/missingauth"
}
*/.