asn v0.2.1 ASN

Summary

Functions

Returns the associated AS-Name of the given AS-ID if any

Returns the associated AS-ID of the given IP if any

Returns the associated AS-Name of the given IP if any

Callback implementation for c:Application.start/2

Functions

as_to_asn(as)

Specs

as_to_asn(integer) :: {:ok, String.t} | :error

Returns the associated AS-Name of the given AS-ID if any.

ip_to_as(ip)

Specs

ip_to_as(String.t | :inet.ip4_address) ::
  {:ok, integer} |
  :error

Returns the associated AS-ID of the given IP if any.

ip_to_asn(ip)

Specs

ip_to_asn(String.t | :inet.ip4_address) ::
  {:ok, String.t} |
  :error

Returns the associated AS-Name of the given IP if any.

start(type, args)

Callback implementation for c:Application.start/2.