Documentation ¶
Overview ¶
Package external contains the API of all services external to Sia.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchSCRates ¶
FetchSCRates retrieves the Siacoin exchange rates.
Types ¶
type IPInfo ¶
type IPInfo struct { IP string `json:"ip"` HostName string `json:"hostname"` City string `json:"city"` Region string `json:"region"` Country string `json:"country"` Location string `json:"loc"` ISP string `json:"org"` ZIP string `json:"postal"` TimeZone string `json:"timezone"` }
IPInfo contains the geolocation data of a host.
func FetchIPInfo ¶
FetchIPInfo uses the IPInfo API to fetch the host's geolocation.
Click to show internal directories.
Click to hide internal directories.