Documentation
¶
Overview ¶
pubip is self contained package to get host public IP Ip may be get from several providers (STUN and fallback to webpage currently) Also caches IP for some time to reduce requests to servers. It does not allocate separate instance for its clients so cache can be reused,
Index ¶
Constants ¶
View Source
const ( Fallback ipProvider = iota Stun WebIP )
Variables ¶
This section is empty.
Functions ¶
func GetPublicIp ¶
func SetUpdatePeriod ¶
func UpdatePeriod ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.