Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IfConfigJsonParser ¶
For json response parsing (ifconfig.co/json version)
func IfConfigMeJsonParser ¶
For json response parsing (ifconfig.me/all.json version)
Types ¶
type HTTPSource ¶
type HTTPSource struct {
// contains filtered or unexported fields
}
func NewHTTPSource ¶
func NewHTTPSource(url string, parser models.ContentParser) *HTTPSource
func (*HTTPSource) GetIPWithContext ¶
func (hs *HTTPSource) GetIPWithContext(ctx context.Context, tcpVersion models.TCPVersion) (netip.Addr, error)
Click to show internal directories.
Click to hide internal directories.