Documentation ¶
Index ¶
- type AddrInfo
- type Client
- func (c *Client) AddrAS(addr string) (uint, string, error)
- func (c *Client) AddrContinent(addr string) (string, error)
- func (c *Client) AddrCountry(addr string) (string, error)
- func (c *Client) AddrCountryContinent(addr string) (string, string, error)
- func (c *Client) Close() error
- func (c *Client) MaddrInfo(ctx context.Context, maddr ma.Multiaddr) (map[string]*AddrInfo, error)
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
}
func (*Client) AddrAS ¶
AddrAS takes an IP address string and tries to derive the Autonomous System Number
func (*Client) AddrContinent ¶
AddrContinent takes an IP address string and tries to derive the continent ISO code.
func (*Client) AddrCountry ¶
AddrCountry takes an IP address string and tries to derive the Country ISO code.
func (*Client) AddrCountryContinent ¶
AddrCountryContinent takes an IP address string and tries to derive the Country ISO code plus Continent code.
Click to show internal directories.
Click to hide internal directories.