Documentation ¶
Overview ¶
Package ipify allows to retrieve the public IP address of a service instance using the external ipify API (https://www.ipify.org/).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents the config options required by this client.
type HTTPClient ¶
HTTPClient contains the function to perform the actual HTTP request.
type Option ¶
type Option func(c *Client)
Option is the interface that allows to set client options.
func WithErrorIP ¶
WithErrorIP overrides the default error return string.
func WithHTTPClient ¶
func WithHTTPClient(hc HTTPClient) Option
WithHTTPClient overrides the default HTTP client.
func WithTimeout ¶
WithTimeout overrides the default request timeout.
Click to show internal directories.
Click to hide internal directories.