ip

package
v0.0.0-...-c0f96ad Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2019 License: Apache-2.0 Imports: 3 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 {
	URLv4 string
	URLv6 string
}

Client for getting IP address

func (*Client) GetIPv4

func (c *Client) GetIPv4() (string, error)

GetIPv4 returns an IPv6 IP address

func (*Client) GetIPv6

func (c *Client) GetIPv6() (string, error)

GetIPv6 returns an IPv6 IP address

type IP

type IP struct {
	IP      string `json:"ip"`
	Version string `json:"version"`
}

IP address results

Jump to

Keyboard shortcuts

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