Documentation ¶
Index ¶
Constants ¶
View Source
const IPv4CheckURL string = "https://checkip.amazonaws.com"
IPv4CheckURL is the endpoint to detect the public IPv4
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientObj ¶
type ClientObj struct {
// contains filtered or unexported fields
}
ClientObj implements the Cliet interface per default
func New ¶
func New() *ClientObj
New returns a new pointer instance of ClientObj with default values
func NewWithHTTPClient ¶
func NewWithHTTPClient(httpClient httpclient.Client) *ClientObj
NewWithHTTPClient returns a new pointer instance of ClientObj with a custom http.Client
func (*ClientObj) GetPublicIPV4 ¶
GetPublicIPV4 fetches the current public IPv4 of this machine and network from an endpoint
Click to show internal directories.
Click to hide internal directories.