Documentation ¶
Index ¶
- func ParseDate(date string) (time.Time, error)
- type Administrator
- type AuxiliarBilling
- type BaseResponse
- type Billing
- type CheckNSStatus
- type Contact
- type Contacts
- type CreateTransferOrder
- type Decodable
- type Delete
- type DomainCheckPrices
- type DomainCheckResponse
- type DomainHost
- type DomainHostDomainLimits
- type DomainHostDomainServices
- type DomainInfoResponse
- type DomainName
- type DomainPurchase
- type DomainPurchaseInfo
- type EDomainInfo
- type Entry
- type Error
- type Extend
- type GetDNS
- type GetHosts
- type NameSpinner
- type PasswordBit
- type RRPInfo
- type RegLock
- type RegisterNameserver
- type Registrant
- type Registry
- type Response
- type SetContact
- type SpinnerDomain
- type SpinnerResponse
- type Status
- type TODContacts
- type TOStatus
- type TOText
- type TPDetail
- type Technical
- type TldDetail
- type TldDetailNameServers
- type TldDetailPremiumNames
- type TldDetailRegistration
- type TldDetailRenewal
- type TldDetailTransfer
- type TldDetailsResponse
- type TldListResponse
- type TransferOrder
- type TransferOrderDetail
- type TransferOrderDetailed
- type TransferOrderReview
- type TransferOrderStatuses
- type TransferOrders
- type UpdateNameserver
- type WPPSContactData
- type WhoisContact
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Administrator ¶
type Administrator struct { OrganizationName string `xml:"AdminOrganizationName"` JobTitle string `xml:"AdminJobTitle"` FirstName string `xml:"AdminFirstName"` LastName string `xml:"AdminLastName"` Address1 string `xml:"AdminAddress1"` Address2 string `xml:"AdminAddress2"` City string `xml:"AdminCity"` Country string `xml:"AdminCountry"` StateProvince string `xml:"AdminStateProvince"` PostalCode string `xml:"AdminPostalCode"` Email string `xml:"AdminEmailAddress"` Phone string `xml:"AdminPhone"` PhoneExtension string `xml:"AdminPhoneExt"` Fax string `xml:"AdminFax"` }
type AuxiliarBilling ¶
type AuxiliarBilling struct { OrganizationName string `xml:"AuxBillingOrganizationName"` JobTitle string `xml:"AuxBillingJobTitle"` FirstName string `xml:"AuxBillingFirstName"` LastName string `xml:"AuxBillingLastName"` Address1 string `xml:"AuxBillingAddress1"` Address2 string `xml:"AuxBillingAddress2"` City string `xml:"AuxBillingCity"` Country string `xml:"AuxBillingCountry"` StateProvince string `xml:"AuxBillingStateProvince"` PostalCode string `xml:"AuxBillingPostalCode"` Email string `xml:"AuxBillingEmailAddress"` Phone string `xml:"AuxBillingPhone"` PhoneExtension string `xml:"AuxBillingPhoneExt"` Fax string `xml:"AuxBillingFax"` }
type BaseResponse ¶
type BaseResponse interface {
Err() error
}
type Billing ¶
type Billing struct { OrganizationName string `xml:"BillingOrganizationName"` JobTitle string `xml:"BillingJobTitle"` FirstName string `xml:"BillingFirstName"` LastName string `xml:"BillingLastName"` Address1 string `xml:"BillingAddress1"` Address2 string `xml:"BillingAddress2"` City string `xml:"BillingCity"` Country string `xml:"BillingCountry"` StateProvince string `xml:"BillingStateProvince"` PostalCode string `xml:"BillingPostalCode"` Email string `xml:"BillingEmailAddress"` Phone string `xml:"BillingPhone"` PhoneExtension string `xml:"BillingPhoneExt"` Fax string `xml:"BillingFax"` }
type CheckNSStatus ¶
type CheckNSStatus struct { Response Name string `xml:"CheckNsStatus>name"` AttribId string `xml:"CheckNsStatus>attrib-id"` IpAddress string `xml:"CheckNsStatus>ipaddress"` AttribUpId string `xml:"CheckNsStatus>attrib-upid"` AttribClId string `xml:"CheckNsStatus>attrib-clid"` AttribCrId string `xml:"CheckNsStatus>attrib-crid"` Statuses []string `xml:"CheckNsStatus>status>status"` AttribUpdate string `xml:"CheckNsStatus>attrib-update"` AttribCrdate string `xml:"CheckNsStatus>attrib-crdate"` }
type Contact ¶
type Contact struct { Type string `xml:"ContactType,attr"` Organization string `xml:"Organization"` FirstName string `xml:"FName"` LastName string `xml:"LName"` Address string `xml:"Address1"` AddressNumber string `xml:"Address2"` City string `xml:"City"` State string `xml:"StateProvince"` PostalCode string `xml:"PostalCode"` Country string `xml:"Country"` PhoneNumber string `xml:"Phone"` PhoneExtension string `xml:"PhoneExt"` FaxNumber string `xml:"Fax"` Email string `xml:"EmailAddress"` }
type Contacts ¶
type Contacts struct { Response Registrant Registrant `xml:"GetContacts>Registrant"` AuxiliarBilling AuxiliarBilling `xml:"GetContacts>AuxBilling"` Technical Technical `xml:"GetContacts>Tech"` Administrator Administrator `xml:"GetContacts>Admin"` Billing Billing `xml:"GetContacts>Billing"` PendingVerification bool `xml:"GetContacts>PendingVerification"` WPPSAllowed int `xml:"GetContacts>WPPSAllowed"` WPPSExists int `xml:"GetContacts>WPPSExists"` WPPSEnabled int `xml:"GetContacts>WPPSEnabled"` WPPSExpirationDate string `xml:"GetContacts>WPPSExpDate"` WPPSAutoRenew string `xml:"GetContacts>WPPSAutoRenew"` WPPSContactData WPPSContactData `xml:"GetContacts>WPPSContactData"` }
type CreateTransferOrder ¶
type CreateTransferOrder struct { Response TransferOrderID int `xml:"transferorder>transferorderid"` OrderDate string `xml:"transferorder>orderdate"` OrderTypeID int `xml:"transferorder>ordertypeid"` OrderTypeDesc string `xml:"transferorder>ordertypedesc"` StatusID int `xml:"transferorder>statusid"` StatusDesc string `xml:"transferorder>statusdesc"` AuthAmount float32 `xml:"transferorder>authamount"` Version int `xml:"transferorder>version"` TransferOrderDetail TPDetail `xml:"transferorder>transferorderdetail"` }
type Decodable ¶
type Decodable interface {
XMLProxy() BaseResponse
}
type DomainCheckPrices ¶
type DomainCheckPrices struct { // TODO docs say: "Price currency. Default value is US dollars." - so when is it _not_ dollars? Currency string `xml:"Currency"` Registration float64 `xml:"Registration"` Renewal float64 `xml:"Renewal"` Restore float64 `xml:"Restore"` Transfer float64 `xml:"Transfer"` // Docs say: // > The exact price for this domain to acknowledge this domain comes at a price higher // > than most registrations. This price is required to be passed to AddToCart or Purchase // > command if the domain is premium, platinum or EAP. // Seems to always match the transfer price. ExpectedPrice float64 `xml:"ExpectedCustomerSuppliedPrice"` }
type DomainCheckResponse ¶
type DomainCheckResponse struct { Response Name string `xml:"Domains>Domain>Name"` // Note that this is in addition to the RRPCode/RRPText common to every response RRPCode int32 `xml:"Domains>Domain>RRPCode"` RRPText string `xml:"Domains>Domain>RRPText"` IsPremium bool `xml:"Domains>Domain>IsPremium"` IsPlatinum bool `xml:"Domains>Domain>IsPlatinum"` IsEAP bool `xml:"Domains>Domain>IsEAP"` Prices DomainCheckPrices `xml:"Domains>Domain>Prices"` }
func (*DomainCheckResponse) Decode ¶
func (r *DomainCheckResponse) Decode() (*response.DomainCheck, error)
type DomainHost ¶
type DomainHostDomainLimits ¶
type DomainInfoResponse ¶
type DomainInfoResponse struct { Response // TODO: it is unclear what this is. Judging by the MultiLang request param for https://api.enom.com/docs/get-domains#input-parameters, // this is about the domain name containing non-ASCII characters. Why the "y", though?? Also, according to // https://api.enom.com/docs/getdomaininfo it's a boolean, but the example shows an empty element. What's the value for true? "On", like // for the get-domains input parameter? MultyLangSLD string `xml:"GetDomainInfo>multy-langSLD"` DomainName DomainName `xml:"GetDomainInfo>domainname"` Status Status `xml:"GetDomainInfo>status"` Services []Entry `xml:"GetDomainInfo>services>entry"` ParkingEnabled bool `xml:"GetDomainInfo>ParkingEnabled"` }
func (*DomainInfoResponse) Decode ¶
func (r *DomainInfoResponse) Decode() (*response.DomainInfo, error)
type DomainName ¶
type DomainPurchase ¶
type DomainPurchase struct { Response OrderID string `xml:"OrderID"` OrderDelayed bool `xml:"OrderDelayed"` OrderStatus string `xml:"OrderStatus"` OrderDescription string `xml:"OrderDescription"` DomainInfo DomainPurchaseInfo `xml:"Info"` TotalCharged float64 `xml:"TotalCharged"` RegistrantPartyID string `xml:"RegistrantPartyID"` IsRealTimeTLD bool `xml:"IsRealTimeTLD"` }
func (*DomainPurchase) Decode ¶
func (d *DomainPurchase) Decode() (*response.DomainPurchase, error)
type DomainPurchaseInfo ¶
type EDomainInfo ¶
type EDomainInfo struct {
RegistryExpDate string `xml:"RegistryExpDate"`
}
type Extend ¶
type Extend struct { Response Extension string `xml:"Extension"` DomainName string `xml:"DomainName"` OrderID int `xml:"OrderID"` DomainInfo EDomainInfo `xml:"Info"` }
type GetHosts ¶
type GetHosts struct { Response Host []DomainHost `xml:"host"` DomainServices DomainHostDomainServices `xml:"DomainServices"` DomainLimits DomainHostDomainLimits `xml:"DomainLimits"` HostRecordCount int `xml:"HostRecordCount"` MxRecordCount int `xml:"MxRecordCount"` }
type NameSpinner ¶
type NameSpinner struct { SpinCount int `xml:"spincount"` TLDList string `xml:"TLDList"` //XMLName xml.Name `xml:"domain"` Domains []SpinnerDomain `xml:"domains>domain"` }
type PasswordBit ¶
type RRPInfo ¶
type RegisterNameserver ¶
type Registrant ¶
type Registrant struct { OrganizationName string `xml:"RegistrantOrganizationName"` JobTitle string `xml:"RegistrantJobTitle"` FirstName string `xml:"RegistrantFirstName"` LastName string `xml:"RegistrantLastName"` Address1 string `xml:"RegistrantAddress1"` Address2 string `xml:"RegistrantAddress2"` City string `xml:"RegistrantCity"` Country string `xml:"RegistrantCountry"` StateProvince string `xml:"RegistrantStateProvince"` PostalCode string `xml:"RegistrantPostalCode"` Email string `xml:"RegistrantEmailAddress"` Phone string `xml:"RegistrantPhone"` PhoneExtension string `xml:"RegistrantPhoneExt"` Fax string `xml:"RegistrantFax"` }
type Response ¶
type Response struct { // See https://api.enom.com/docs/rrp-return-codes ResponseCode int `xml:"RRPCode"` ResponseText string `xml:"RRPText"` Command string `xml:"Command"` Language string `xml:"Language"` // Use [Response.Err] instead ErrCount int `xml:"ErrCount"` // Use [Response.Err] instead Errors []Error `xml:"errors"` }
type SetContact ¶
type SpinnerDomain ¶
type SpinnerDomain struct { //XMLName xml.Name `xml:"domain"` Name string `xml:"name,attr"` Com string `xml:"com,attr"` ComScore string `xml:"comscore,attr"` Net string `xml:"net,attr"` NetScore string `xml:"netscore,attr"` Tv string `xml:"tv,attr"` TvScore string `xml:"tvscore,attr"` Cc string `xml:"cc,attr"` CcScore string `xml:"ccscore,attr"` }
type SpinnerResponse ¶
type SpinnerResponse struct { Response NameSpinner NameSpinner `xml:"namespin"` }
func (*SpinnerResponse) Decode ¶
func (s *SpinnerResponse) Decode() *response.NameSpinner
type Status ¶
type Status struct { Expiration string `xml:"expiration"` DeleteByDate string `xml:"deletebydate"` DeleteType string `xml:"deletetype"` Restorable bool `xml:"restorable"` RenewBeforeExpiration string `xml:"renewbeforeexpiration"` Registrar string `xml:"registrar"` // TODO: apparently there is "Registered" - what's the string for unregistered? And are there other states? RegistrationStatus string `xml:"registrationstatus"` PurchaseStatus string `xml:"purchase-status"` Registry Registry `xml:"belongs-to"` EscrowHold string `xml:"escrowhold"` EscrowLiftDate string `xml:"escrowliftdate"` AuctionHold bool `xml:"auctionhold"` AuctionLiftDate string `xml:"auctionliftdate"` }
type TODContacts ¶
type TPDetail ¶
type TPDetail struct { TransferOrderDetailID int `xml:"transferorderdetailid"` Sld string `xml:"sld"` Tld string `xml:"tld"` StatusID int `xml:"statusid"` StatusDesc string `xml:"statusdesc"` Price float32 `xml:"price"` UseContacts int `xml:"usecontacts"` PremiumDomain string `xml:"premiumdomain"` CustomerSuppliedPrice string `xml:"customersuppliedprice"` }
type Technical ¶
type Technical struct { OrganizationName string `xml:"TechOrganizationName"` JobTitle string `xml:"TechJobTitle"` FirstName string `xml:"TechFirstName"` LastName string `xml:"TechLastName"` Address1 string `xml:"TechAddress1"` Address2 string `xml:"TechAddress2"` City string `xml:"TechCity"` Country string `xml:"TechCountry"` StateProvince string `xml:"TechStateProvince"` PostalCode string `xml:"TechPostalCode"` Email string `xml:"TechEmailAddress"` Phone string `xml:"TechPhone"` PhoneExtension string `xml:"TechPhoneExt"` Fax string `xml:"TechFax"` }
type TldDetail ¶
type TldDetail struct { Tld string `xml:"TLD"` AbleToLock bool `xml:"AbleToLock"` AllowWPPS bool `xml:"AllowWPPS"` AutoRenewOnly bool `xml:"AutoRenewOnly"` ExtAttributes bool `xml:"ExtAttributes"` AllowWBL bool `xml:"AllowWBL"` TransRequiresNewContact bool `xml:"TransRequiresNewContact"` // Docs say: "Support Internationalized Domain Name (IDN)? If not empty, the TLD supports IDN" EncodingType string `xml:"EncodingType"` ClearPhoneNumber bool `xml:"ClearPhoneNumber"` ClearFax bool `xml:"ClearFax"` ValidateDNSHosting bool `xml:"ValidateDNSHosting"` HasPremiumNames bool `xml:"HasPremiumNames"` SupportsDnsSec bool `xml:"SupportsDnsSec"` AllowWhoisPublicity bool `xml:"AllowWhoisPublicity"` Registration TldDetailRegistration `xml:"Registration"` Renewal TldDetailRenewal `xml:"Renewal"` Transfer TldDetailTransfer `xml:"Transfer"` PremiumNames TldDetailPremiumNames `xml:"PremiumNames"` NameServers TldDetailNameServers `xml:"NameServers"` }
type TldDetailNameServers ¶
type TldDetailPremiumNames ¶
type TldDetailRegistration ¶
type TldDetailRegistration struct { Realtime bool `xml:"Realtime"` Unit string `xml:"Unit"` Minimum int `xml:"Minimum"` Maximum int `xml:"Maximum"` HasPremiumNames bool `xml:"HasPremiumNames"` ExtAttributes bool `xml:"ExtAttributes"` ExtAttributesDomainLevel bool `xml:"ExtAttributesDomainLevel"` DNSRequired bool `xml:"DNSRequired"` DNSMinimum int `xml:"DNSMinimum"` DNSMaximum int `xml:"DNSMaximum"` GeneralAvailabilityStartDate string `xml:"GeneralAvailabilityStartDate"` }
type TldDetailRenewal ¶
type TldDetailRenewal struct { AutoRenewOnly bool `xml:"AutoRenewOnly"` AutoRenewed bool `xml:"AutoRenewed"` RenewBeforeExpMonths int `xml:"RenewBeforeExpMonths"` DeleteType int `xml:"DeleteType"` DeleteDay int `xml:"DeleteDay"` GracePeriod int `xml:"GracePeriod"` Reactivate bool `xml:"Reactivate"` Restorable bool `xml:"Restorable"` RGP bool `xml:"RGP"` RGPDays int `xml:"RGPDays"` ExtendedRGP bool `xml:"ExtendedRGP"` TransferPeriod int `xml:"TransferPeriod"` }
type TldDetailTransfer ¶
type TldDetailTransfer struct { Transferable bool `xml:"Transferable"` AuthInfo bool `xml:"AuthInfo"` Realtime bool `xml:"Realtime"` AutoVerification bool `xml:"AutoVerification"` AutoFax bool `xml:"AutoFax"` TransferByFOA bool `xml:"TransferByFOA"` RequiresNewContact bool `xml:"RequiresNewContact"` }
type TldDetailsResponse ¶
type TldDetailsResponse struct { XMLName xml.Name `xml:"interface-response"` Response Tlds TldDetail `xml:"tlds>tld"` }
func (*TldDetailsResponse) Decode ¶
func (t *TldDetailsResponse) Decode() (*response.TldDetails, error)
type TldListResponse ¶
type TldListResponse struct { XMLName xml.Name `xml:"interface-response"` Response TldList []string `xml:"tldlist>tld>tld"` TldCount int32 `xml:"tldlist>tldcount"` }
func (*TldListResponse) Decode ¶
func (t *TldListResponse) Decode() response.TldList
type TransferOrder ¶
type TransferOrderDetail ¶
type TransferOrderDetail struct { Response Id int `xml:"transferorderdetail>transferorderdetailid"` Sld string `xml:"transferorderdetail>sld"` Tld string `xml:"transferorderdetail>tld"` Lock bool `xml:"transferorderdetail>lock"` Renew bool `xml:"transferorderdetail>renew"` DomainPassword string `xml:"transferorderdetail>domainpassword"` StatusId int `xml:"transferorderdetail>statusid"` StatusDesc string `xml:"transferorderdetail>statusdesc"` Price float32 `xml:"transferorderdetail>price"` UseContacts int `xml:"transferorderdetail>usecontacts"` Contacts TODContacts `xml:"transferorderdetail>contacts"` }
type TransferOrderDetailed ¶
type TransferOrderDetailed struct { DetailId int `xml:"transferorderdetailid"` Sld string `xml:"sld"` Tld string `xml:"tld"` Price float32 `xml:"price"` AbleToLock bool `xml:"abletolock"` Lock bool `xml:"lock"` Renew bool `xml:"renew"` DomainPassword string `xml:"domainpassword"` UseContacts int `xml:"usecontacts"` RequestAuthInfo bool `xml:"reqauthinfo"` AuthInfo string `xml:"authinfo"` RRProcessor string `xml:"RRProcessor"` RegistrantPartyID string `xml:"RegistrantPartyID"` RegistrantROID string `xml:"RegistrantROID"` PremiumDomain bool `xml:"PremiumDomain"` }
type TransferOrderReview ¶
type TransferOrderReview struct { Response TransferOrderDetailed TransferOrderDetailed `xml:"transferorderreview>transferorderdetail"` TransferOrderDetailCount int `xml:"transferorderdetailcount"` TransferOrderDetailEuCount int `xml:"transferorderdetaileucount"` TransferOrderDetailCaCount int `xml:"transferorderdetailcacount"` TransferOrderDetailDeCount int `xml:"transferorderdetaildecount"` TransferOrderDetailBeCount int `xml:"transferorderdetailbecount"` TransferTotalPrice float32 `xml:"transfertotalprice"` AuthInfoStillRequired string `xml:"authinfostillrequired"` EuInfoStillRequired string `xml:"euinfostillrequired"` CaInfoStillRequired string `xml:"cainfostillrequired"` DeInfoStillRequired string `xml:"deinfostillrequired"` BeInfoStillRequired string `xml:"beinfostillrequired"` }
type TransferOrderStatuses ¶
type TransferOrderStatuses struct { Response Count int `xml:"TransferOrderCount"` TransferOrder []TransferOrder `xml:"transferorder"` AtLeastOnePendingOrder bool `xml:"FoundAtLeastOnePendingOrder"` }
type TransferOrders ¶
type TransferOrders struct {
Response
}
type UpdateNameserver ¶
type WPPSContactData ¶
type WPPSContactData struct { ContactType string `xml:"ContactType"` OrganizationName string `xml:"OrganizationName"` JobTitle string `xml:"JobTitle"` FirstName string `xml:"FirstName"` LastName string `xml:"LastName"` Address1 string `xml:"Address1"` Address2 string `xml:"Address2"` City string `xml:"City"` Country string `xml:"Country"` StateProvince string `xml:"StateProvince"` PostalCode string `xml:"PostalCode"` Email string `xml:"EmailAddress"` Phone string `xml:"Phone"` PhoneExtension string `xml:"PhoneExt"` Fax string `xml:"Fax"` DateTimeChanged string `xml:"DateTimeChanged"` }
type WhoisContact ¶
type WhoisContact struct { Response Contacts []Contact `xml:"GetWhoisContacts>contacts>contact"` RRPInfo RRPInfo `xml:"GetWhoisContacts>rrp-info"` DomainExpired bool `xml:"GetWhoisContacts>DomainExpired"` }
func (*WhoisContact) Decode ¶
func (r *WhoisContact) Decode() (*response.WhoisContact, error)
Source Files ¶
- check_ns_status.go
- contacts.go
- create_transfer_order.go
- date.go
- delete.go
- domain_check.go
- domain_info.go
- domain_purchase.go
- extend.go
- get_dns.go
- get_hosts.go
- password_bit.go
- reg_lock.go
- register_nameserver.go
- response.go
- set_contact.go
- spinner.go
- tld_details.go
- tld_list.go
- transfer_order_detail.go
- transfer_order_review.go
- transfer_order_statuses.go
- transfer_orders.go
- update_nameserver.go
- whois_contact.go
Click to show internal directories.
Click to hide internal directories.