View Source Whois.Record (Whois v0.3.1)

A parsed WHOIS record.

Summary

Functions

Parses the raw WHOIS server response in raw into a %Whois.Record{}.

Types

@type t() :: %Whois.Record{
  contacts: %{
    registrant: Whois.Contact.t(),
    administrator: Whois.Contact.t(),
    technical: Whois.Contact.t()
  },
  created_at: NaiveDateTime.t() | nil,
  domain: String.t() | nil,
  expires_at: NaiveDateTime.t() | nil,
  nameservers: [String.t()],
  raw: String.t(),
  registrar: String.t() | nil,
  status: [String.t()],
  updated_at: NaiveDateTime.t() | nil
}

Functions

Link to this macro

is_empty(record)

View Source (macro)
@spec parse(String.t()) :: t()

Parses the raw WHOIS server response in raw into a %Whois.Record{}.