wanip

package
v2.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	UserAgent  string
	MaxRetries int
}

Client represents an active wanip object

func NewClient

func NewClient(userAgent string, maxRetries int) (c *Client)

NewClient initializes a new wanip client

func (*Client) IPv4

func (c *Client) IPv4() (net.IP, Errors)

IPv4 returns your IPv4 address

func (*Client) IPv6

func (c *Client) IPv6() (net.IP, Errors)

IPv6 returns your IPv6 address

type Error

type Error struct {
	Err         error
	ProviderURL string
}

Error holds wanip error

type Errors

type Errors []Error

Errors holds slice of wanip errors

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL