Documentation
¶
Index ¶
- Constants
- type AccountService
- type Client
- type ClientOptions
- type Contact
- type ContactCreateRequest
- type ContactInfoResponse
- type ContactListResponse
- type ContactService
- func (s *ContactService) Create(request *ContactCreateRequest) (int, error)
- func (s *ContactService) Delete(roID int) error
- func (s *ContactService) Info(contactID int) (*ContactInfoResponse, error)
- func (s *ContactService) List(search string) (*ContactListResponse, error)
- func (s *ContactService) Update(request *ContactUpdateRequest) error
- type ContactUpdateRequest
- type DNSSecAddRequest
- type DNSSecAddResponse
- type DNSSecInfo
- type DNSSecInfoResponse
- type DNSSecService
- func (s *DNSSecService) Add(request *DNSSecAddRequest) (*DNSSecAddResponse, error)
- func (s *DNSSecService) DeleteAll(domain string) error
- func (s *DNSSecService) DeleteDNSKey(key string) error
- func (s *DNSSecService) Disable(domain string) error
- func (s *DNSSecService) Enable(domain string) error
- func (s *DNSSecService) Info(domains []string) (*DNSSecInfoResponse, error)
- func (s *DNSSecService) List(request *DNSSecServiceListRequest) (*DNSSecServiceList, error)
- type DNSSecServiceList
- type DNSSecServiceListRequest
- type DNSSecServiceListResponse
- type DomainCheckResponse
- type DomainInfoResponse
- type DomainList
- type DomainListRequest
- type DomainPriceResponse
- type DomainRegisterRequest
- type DomainRegisterResponse
- type DomainService
- func (s *DomainService) Check(domains []string) ([]DomainCheckResponse, error)
- func (s *DomainService) Delete(domain string, scheduledDate time.Time) error
- func (s *DomainService) GetPrices(tlds []string) ([]DomainPriceResponse, error)
- func (s *DomainService) Info(domain string, roID int) (*DomainInfoResponse, error)
- func (s *DomainService) List(request *DomainListRequest) (*DomainList, error)
- func (s *DomainService) Register(request *DomainRegisterRequest) (*DomainRegisterResponse, error)
- func (s *DomainService) Update(request *DomainUpdateRequest) (float32, error)
- func (s *DomainService) Whois(domain string) (string, error)
- type DomainUpdateRequest
- type DomainUpdateResponse
- type ErrorResponse
- type LoginResponse
- type NameserverCheckResponse
- type NameserverCreateRequest
- type NameserverDomain
- type NameserverInfoRequest
- type NameserverInfoResponse
- type NameserverListRequest
- type NameserverListResponse
- type NameserverRecord
- type NameserverRecordRequest
- type NameserverService
- func (s *NameserverService) Check(domain string, nameservers []string) (*NameserverCheckResponse, error)
- func (s *NameserverService) Create(request *NameserverCreateRequest) (int, error)
- func (s *NameserverService) CreateRecord(request *NameserverRecordRequest) (string, error)
- func (s *NameserverService) DeleteRecord(recID string) error
- func (s *NameserverService) FindRecordByID(recID string) (*NameserverRecord, *NameserverDomain, error)
- func (s *NameserverService) Info(request *NameserverInfoRequest) (*NameserverInfoResponse, error)
- func (s *NameserverService) List(domain string) (*NameserverListResponse, error)deprecated
- func (s *NameserverService) ListWithParams(request *NameserverListRequest) (*NameserverListResponse, error)
- func (s *NameserverService) UpdateRecord(recID string, request *NameserverRecordRequest) error
- type NamserverInfoResponsedeprecated
- type NamserverListResponsedeprecated
- type Request
- type Response
- type SlaveInfo
Constants ¶
const ( APIBaseURL = "https://api.domrobot.com/xmlrpc/" APISandboxBaseURL = "https://api.ote.domrobot.com/xmlrpc/" APILanguage = "en" )
API information.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountService ¶ added in v0.3.0
type AccountService service
AccountService API access to Account.
func (*AccountService) Lock ¶ added in v0.3.0
func (s *AccountService) Lock() error
Lock Account lock.
func (*AccountService) Login ¶ added in v0.3.0
func (s *AccountService) Login() (*LoginResponse, error)
Login Account login.
func (*AccountService) Logout ¶ added in v0.3.0
func (s *AccountService) Logout() error
Logout Account logout.
func (*AccountService) Unlock ¶ added in v0.3.0
func (s *AccountService) Unlock(tan string) error
Unlock Account unlock.
type Client ¶
type Client struct {
// HTTP client used to communicate with the INWX API.
RPCClient *xmlrpc.Client
// Services used for communicating with the API
Account *AccountService
Contacts *ContactService
Dnssec *DNSSecService
Domains *DomainService
Nameservers *NameserverService
// contains filtered or unexported fields
}
Client manages communication with INWX API.
func NewClient ¶
func NewClient(username, password string, opts *ClientOptions) *Client
NewClient returns a new INWX API client.
type ClientOptions ¶ added in v0.2.1
type ClientOptions struct {
Sandbox bool
// Language of the return message. (en/de/es)
Lang string
// Base URL for API requests (only for client testing purpose).
BaseURL *url.URL
}
ClientOptions Options of the API client.
type Contact ¶
type Contact struct {
RoID int `mapstructure:"roId"`
ID string `mapstructure:"id"`
Type string `mapstructure:"type"`
Name string `mapstructure:"name"`
Org string `mapstructure:"org"`
Street string `mapstructure:"street"`
City string `mapstructure:"city"`
PostalCode string `mapstructure:"pc"`
StateProvince string `mapstructure:"sp"`
Country string `mapstructure:"cc"`
Phone string `mapstructure:"voice"`
Fax string `mapstructure:"fax"`
Email string `mapstructure:"email"`
Remarks string `mapstructure:"remarks"`
Protection string `mapstructure:"protection"`
}
Contact API model.
type ContactCreateRequest ¶ added in v0.3.2
type ContactCreateRequest struct {
Type string `structs:"type"`
Name string `structs:"name"`
Org string `structs:"org,omitempty"`
Street string `structs:"street"`
City string `structs:"city"`
PostalCode string `structs:"pc"`
StateProvince string `structs:"sp,omitempty"`
CountryCode string `structs:"cc"`
Voice string `structs:"voice"`
Fax string `structs:"fax,omitempty"`
Email string `structs:"email"`
Remarks string `structs:"remarks,omitempty"`
Protection bool `structs:"protection,omitempty"`
Testing bool `structs:"testing,omitempty"`
}
ContactCreateRequest API model.
type ContactInfoResponse ¶ added in v0.3.2
type ContactInfoResponse struct {
Contact Contact `mapstructure:"contact"`
}
ContactInfoResponse API model.
type ContactListResponse ¶ added in v0.3.2
type ContactListResponse struct {
Count int `mapstructure:"count"`
Contacts []Contact `mapstructure:"contact"`
}
ContactListResponse API model.
type ContactService ¶ added in v0.3.2
type ContactService service
ContactService API access to Contact.
func (*ContactService) Create ¶ added in v0.3.2
func (s *ContactService) Create(request *ContactCreateRequest) (int, error)
Create Creates a contact.
func (*ContactService) Delete ¶ added in v0.3.2
func (s *ContactService) Delete(roID int) error
Delete Deletes a contact.
func (*ContactService) Info ¶ added in v0.3.2
func (s *ContactService) Info(contactID int) (*ContactInfoResponse, error)
Info Get information about a contact.
func (*ContactService) List ¶ added in v0.3.2
func (s *ContactService) List(search string) (*ContactListResponse, error)
List Search contacts.
func (*ContactService) Update ¶ added in v0.3.2
func (s *ContactService) Update(request *ContactUpdateRequest) error
Update Updates a contact.
type ContactUpdateRequest ¶ added in v0.3.2
type ContactUpdateRequest struct {
ID int `structs:"id"`
Name string `structs:"name,omitempty"`
Org string `structs:"org,omitempty"`
Street string `structs:"street,omitempty"`
City string `structs:"city,omitempty"`
PostalCode string `structs:"pc,omitempty"`
StateProvince string `structs:"sp,omitempty"`
CountryCode string `structs:"cc,omitempty"`
Voice string `structs:"voice,omitempty"`
Fax string `structs:"fax,omitempty"`
Email string `structs:"email,omitempty"`
Remarks string `structs:"remarks,omitempty"`
Protection bool `structs:"protection,omitempty"`
Testing bool `structs:"testing,omitempty"`
}
ContactUpdateRequest API model.
type DNSSecAddRequest ¶ added in v0.11.0
type DNSSecAddRequest struct {
DomainName string `structs:"domainName,omitempty"`
DNSKey string `structs:"dnskey,omitempty"`
DS string `structs:"ds,omitempty"`
CalculateDigest bool `structs:"calculateDigest,omitempty"`
DigestType int `structs:"digestType,omitempty"`
}
DNSSecAddRequest API model.
type DNSSecAddResponse ¶ added in v0.11.0
type DNSSecAddResponse struct {
DNSKey string `mapstructure:"dnskey"`
DS string `mapstructure:"ds"`
}
DNSSecAddResponse API model.
type DNSSecInfo ¶ added in v0.11.0
type DNSSecInfo struct {
Domain string `mapstructure:"domain"`
KeyCount int `mapstructure:"keyCount"`
DNSSecStatus string `mapstructure:"dnsSecStatus"`
}
DNSSecInfo API model.
type DNSSecInfoResponse ¶ added in v0.11.0
type DNSSecInfoResponse struct {
Data []DNSSecInfo `mapstructure:"data"`
}
DNSSecInfoResponse API model.
type DNSSecService ¶ added in v0.11.0
type DNSSecService service
DNSSecService API access to DNSSEC.
func (*DNSSecService) Add ¶ added in v0.11.0
func (s *DNSSecService) Add(request *DNSSecAddRequest) (*DNSSecAddResponse, error)
Add adds one DNSKEY to a specified domain.
func (*DNSSecService) DeleteAll ¶ added in v0.11.0
func (s *DNSSecService) DeleteAll(domain string) error
DeleteAll deletes all DNSKEY/DS entries for a domain.
func (*DNSSecService) DeleteDNSKey ¶ added in v0.11.0
func (s *DNSSecService) DeleteDNSKey(key string) error
DeleteDNSKey deletes one DNSKEY from a specified domain.
func (*DNSSecService) Disable ¶ added in v0.11.0
func (s *DNSSecService) Disable(domain string) error
Disable disables automated DNSSEC management for a domain.
func (*DNSSecService) Enable ¶ added in v0.11.0
func (s *DNSSecService) Enable(domain string) error
Enable enables automated DNSSEC management for a domain.
func (*DNSSecService) Info ¶ added in v0.11.0
func (s *DNSSecService) Info(domains []string) (*DNSSecInfoResponse, error)
Info gets current DNSSEC information.
func (*DNSSecService) List ¶ added in v0.11.0
func (s *DNSSecService) List(request *DNSSecServiceListRequest) (*DNSSecServiceList, error)
List lists domains.
type DNSSecServiceList ¶ added in v0.11.0
type DNSSecServiceList struct {
DNSKeys []DNSSecServiceListResponse `mapstructure:"dnskey"`
}
DNSSecServiceList API model.
type DNSSecServiceListRequest ¶ added in v0.11.0
type DNSSecServiceListRequest struct {
DomainName string `structs:"domainName,omitempty"`
DomainNameIdn string `structs:"domainNameIdn,omitempty"`
KeyTag int `structs:"keyTag,omitempty"`
FlagID int `structs:"flagId,omitempty"`
AlgorithmID int `structs:"algorithmId,omitempty"`
PublicKey string `structs:"publicKey,omitempty"`
DigestTypeID int `structs:"digestTypeId,omitempty"`
Digest string `structs:"digest,omitempty"`
CreatedBefore string `structs:"createdBefore,omitempty"`
CreatedAfter string `structs:"createdAfter,omitempty"`
Status string `structs:"status,omitempty"`
Active int `structs:"active,omitempty"`
Page int `structs:"page,omitempty"`
PageLimit int `structs:"pagelimit,omitempty"`
}
DNSSecServiceListRequest API model.
type DNSSecServiceListResponse ¶ added in v0.11.0
type DNSSecServiceListResponse struct {
OwnerName string `mapstructure:"ownerName"`
ID int `mapstructure:"id"`
DomainID int `mapstructure:"domainId"`
KeyTag int `mapstructure:"keyTag"`
FlagID int `mapstructure:"flagId"`
AlgorithmID int `mapstructure:"algorithmId"`
PublicKey string `mapstructure:"publicKey"`
DigestTypeID int `mapstructure:"digestTypeId"`
Digest string `mapstructure:"digest"`
Created time.Time `mapstructure:"created"`
Status string `mapstructure:"status"`
Active int `mapstructure:"active"`
}
DNSSecServiceListResponse API model.
type DomainCheckResponse ¶
type DomainCheckResponse struct {
Available int `mapstructure:"avail"`
Status string `mapstructure:"status"`
Name string `mapstructure:"name"`
Domain string `mapstructure:"domain"`
TLD string `mapstructure:"tld"`
CheckMethod string `mapstructure:"checkmethod"`
Price float32 `mapstructure:"price"`
CheckTime float32 `mapstructure:"checktime"`
}
DomainCheckResponse API model.
type DomainInfoResponse ¶
type DomainInfoResponse struct {
RoID int `mapstructure:"roId"`
Domain string `mapstructure:"domain"`
DomainAce string `mapstructure:"domainAce"`
Period string `mapstructure:"period"`
CrDate time.Time `mapstructure:"crDate"`
ExDate time.Time `mapstructure:"exDate"`
UpDate time.Time `mapstructure:"upDate"`
ReDate time.Time `mapstructure:"reDate"`
ScDate time.Time `mapstructure:"scDate"`
TransferLock bool `mapstructure:"transferLock"`
Status string `mapstructure:"status"`
AuthCode string `mapstructure:"authCode"`
RenewalMode string `mapstructure:"renewalMode"`
TransferMode string `mapstructure:"transferMode"`
Registrant int `mapstructure:"registrant"`
Admin int `mapstructure:"admin"`
Tech int `mapstructure:"tech"`
Billing int `mapstructure:"billing"`
Nameservers []string `mapstructure:"ns"`
NoDelegation bool `mapstructure:"noDelegation"`
Contacts map[string]Contact `mapstructure:"contact"`
}
DomainInfoResponse API model.
type DomainList ¶
type DomainList struct {
Count int `mapstructure:"count"`
Domains []DomainInfoResponse `mapstructure:"domain"`
}
DomainList API model.
type DomainListRequest ¶
type DomainListRequest struct {
Domain string `structs:"domain,omitempty"`
RoID int `structs:"roId,omitempty"`
Status int `structs:"status,omitempty"`
Registrant int `structs:"registrant,omitempty"`
Admin int `structs:"admin,omitempty"`
Tech int `structs:"tech,omitempty"`
Billing int `structs:"billing,omitempty"`
RenewalMode int `structs:"renewalMode,omitempty"`
TransferLock int `structs:"transferLock,omitempty"`
NoDelegation int `structs:"noDelegation,omitempty"`
Tag int `structs:"tag,omitempty"`
Order int `structs:"order,omitempty"`
Page int `structs:"page,omitempty"`
PageLimit int `structs:"pagelimit,omitempty"`
}
DomainListRequest API model.
type DomainPriceResponse ¶ added in v0.3.2
type DomainPriceResponse struct {
Tld string `mapstructure:"tld"`
Currency string `mapstructure:"currency"`
CreatePrice float32 `mapstructure:"createPrice"`
MonthlyCreatePrice float32 `mapstructure:"monthlyCreatePrice"`
TransferPrice float32 `mapstructure:"transferPrice"`
RenewalPrice float32 `mapstructure:"renewalPrice"`
MonthlyRenewalPrice float32 `mapstructure:"monthlyRenewalPrice"`
UpdatePrice float32 `mapstructure:"updatePrice"`
TradePrice float32 `mapstructure:"tradePrice"`
TrusteePrice float32 `mapstructure:"trusteePrice"`
MonthlyTrusteePrice float32 `mapstructure:"monthlyTrusteePrice"`
CreatePeriod int `mapstructure:"createPeriod"`
TransferPeriod int `mapstructure:"transferPeriod"`
RenewalPeriod int `mapstructure:"renewalPeriod"`
TradePeriod int `mapstructure:"tradePeriod"`
}
DomainPriceResponse API model.
type DomainRegisterRequest ¶
type DomainRegisterRequest struct {
Domain string `structs:"domain"`
Period string `structs:"period,omitempty"`
Registrant int `structs:"registrant"`
Admin int `structs:"admin"`
Tech int `structs:"tech"`
Billing int `structs:"billing"`
Nameservers []string `structs:"ns,omitempty"`
TransferLock string `structs:"transferLock,omitempty"`
RenewalMode string `structs:"renewalMode,omitempty"`
WhoisProvider string `structs:"whoisProvider,omitempty"`
WhoisURL string `structs:"whoisUrl,omitempty"`
ScDate string `structs:"scDate,omitempty"`
ExtDate string `structs:"extDate,omitempty"`
Asynchron string `structs:"asynchron,omitempty"`
Voucher string `structs:"voucher,omitempty"`
Testing string `structs:"testing,omitempty"`
}
DomainRegisterRequest API model.
type DomainRegisterResponse ¶
type DomainRegisterResponse struct {
RoID int `mapstructure:"roId"`
Price float32 `mapstructure:"price"`
Currency string `mapstructure:"currency"`
}
DomainRegisterResponse API model.
type DomainService ¶
type DomainService service
DomainService API access to Domain.
func (*DomainService) Check ¶
func (s *DomainService) Check(domains []string) ([]DomainCheckResponse, error)
Check checks domains.
func (*DomainService) Delete ¶
func (s *DomainService) Delete(domain string, scheduledDate time.Time) error
Delete deletes a domain.
func (*DomainService) GetPrices ¶ added in v0.3.2
func (s *DomainService) GetPrices(tlds []string) ([]DomainPriceResponse, error)
GetPrices gets TLDS prices.
func (*DomainService) Info ¶
func (s *DomainService) Info(domain string, roID int) (*DomainInfoResponse, error)
Info gets information about a domain.
func (*DomainService) List ¶
func (s *DomainService) List(request *DomainListRequest) (*DomainList, error)
List lists domains.
func (*DomainService) Register ¶
func (s *DomainService) Register(request *DomainRegisterRequest) (*DomainRegisterResponse, error)
Register registers a domain.
func (*DomainService) Update ¶ added in v0.8.0
func (s *DomainService) Update(request *DomainUpdateRequest) (float32, error)
Update updates domain information.
type DomainUpdateRequest ¶ added in v0.8.0
type DomainUpdateRequest struct {
Domain string `structs:"domain"`
Nameservers []string `structs:"ns,omitempty"`
TransferLock int `structs:"transferLock,omitempty"`
RenewalMode string `structs:"renewalMode,omitempty"`
TransferMode string `structs:"transferMode,omitempty"`
}
DomainUpdateRequest API model.
type DomainUpdateResponse ¶ added in v0.8.0
type DomainUpdateResponse struct {
Price float32 `mapstructure:"price"`
}
DomainUpdateResponse API model.
type ErrorResponse ¶
type ErrorResponse struct {
Code int `xmlrpc:"code"`
Message string `xmlrpc:"msg"`
ReasonCode string `xmlrpc:"reasonCode"`
Reason string `xmlrpc:"reason"`
}
An ErrorResponse reports the error caused by an API request.
func (*ErrorResponse) Error ¶
func (r *ErrorResponse) Error() string
type LoginResponse ¶ added in v0.7.0
type LoginResponse struct {
CustomerID int64 `mapstructure:"customerId"`
AccountID int64 `mapstructure:"accountId"`
TFA string `mapstructure:"tfa"`
BuildDate string `mapstructure:"builddate"`
Version string `mapstructure:"version"`
}
LoginResponse API model.
type NameserverCheckResponse ¶
type NameserverCheckResponse struct {
Details []string `mapstructure:"details"`
Status string `mapstructure:"status"`
}
NameserverCheckResponse API model.
type NameserverCreateRequest ¶ added in v0.3.2
type NameserverCreateRequest struct {
Domain string `structs:"domain"`
Type string `structs:"type"`
Nameservers []string `structs:"ns,omitempty"`
MasterIP string `structs:"masterIp,omitempty"`
Web string `structs:"web,omitempty"`
Mail string `structs:"mail,omitempty"`
SoaEmail string `structs:"soaEmail,omitempty"`
URLRedirectType string `structs:"urlRedirectType,omitempty"`
URLRedirectTitle string `structs:"urlRedirectTitle,omitempty"`
URLRedirectDescription string `structs:"urlRedirectDescription,omitempty"`
URLRedirectFavIcon string `structs:"urlRedirectFavIcon,omitempty"`
URLRedirectKeywords string `structs:"urlRedirectKeywords,omitempty"`
Testing bool `structs:"testing,omitempty"`
}
NameserverCreateRequest API model.
type NameserverDomain ¶ added in v0.2.0
type NameserverDomain struct {
RoID int `mapstructure:"roId"`
Domain string `mapstructure:"domain"`
Type string `mapstructure:"type"`
MasterIP string `mapstructure:"masterIp"`
Mail string `mapstructure:"mail"`
Web string `mapstructure:"web"`
URL string `mapstructure:"url"`
Ipv4 string `mapstructure:"ipv4"`
Ipv6 string `mapstructure:"ipv6"`
}
NameserverDomain API model.
type NameserverInfoRequest ¶ added in v0.4.0
type NameserverInfoRequest struct {
Domain string `structs:"domain,omitempty"`
RoID int `structs:"roId,omitempty"`
RecordID string `structs:"recordId,omitempty"`
Type string `structs:"type,omitempty"`
Name string `structs:"name,omitempty"`
Content string `structs:"content,omitempty"`
TTL int `structs:"ttl,omitempty"`
Priority int `structs:"prio,omitempty"`
}
NameserverInfoRequest API model.
type NameserverInfoResponse ¶ added in v0.9.0
type NameserverInfoResponse struct {
RoID int `mapstructure:"roId"`
Domain string `mapstructure:"domain"`
Type string `mapstructure:"type"`
MasterIP string `mapstructure:"masterIp"`
LastZoneCheck time.Time `mapstructure:"lastZoneCheck"`
SlaveDNS []SlaveInfo `mapstructure:"slaveDns"`
SOASerial string `mapstructure:"SOAserial"`
Count int `mapstructure:"count"`
Records []NameserverRecord `mapstructure:"record"`
}
NameserverInfoResponse API model.
type NameserverListRequest ¶ added in v0.9.0
type NameserverListRequest struct {
Domain string `structs:"domain,omitempty"`
Wide int `structs:"wide,omitempty"`
Page int `structs:"page,omitempty"`
PageLimit int `structs:"pagelimit,omitempty"`
}
NameserverListRequest API model.
type NameserverListResponse ¶ added in v0.9.0
type NameserverListResponse struct {
Count int `mapstructure:"count"`
Domains []NameserverDomain `mapstructure:"domains"`
}
NameserverListResponse API model.
type NameserverRecord ¶
type NameserverRecord struct {
ID string `mapstructure:"id"`
Name string `mapstructure:"name"`
Type string `mapstructure:"type"`
Content string `mapstructure:"content"`
TTL int `mapstructure:"TTL"`
Priority int `mapstructure:"prio"`
URLAppend bool `mapstructure:"urlAppend,omitempty"`
URLRedirectType string `mapstructure:"urlRedirectType"`
URLRedirectTitle string `mapstructure:"urlRedirectTitle"`
URLRedirectDescription string `mapstructure:"urlRedirectDescription"`
URLRedirectKeywords string `mapstructure:"urlRedirectKeywords"`
URLRedirectFavIcon string `mapstructure:"urlRedirectFavIcon"`
}
NameserverRecord API model.
type NameserverRecordRequest ¶
type NameserverRecordRequest struct {
RoID int `structs:"roId,omitempty"`
Domain string `structs:"domain,omitempty"`
Type string `structs:"type"`
Content string `structs:"content"`
Name string `structs:"name,omitempty"`
TTL int `structs:"ttl,omitempty"`
Priority int `structs:"prio,omitempty"`
URLAppend bool `structs:"urlAppend,omitempty"`
URLRedirectType string `structs:"urlRedirectType,omitempty"`
URLRedirectTitle string `structs:"urlRedirectTitle,omitempty"`
URLRedirectDescription string `structs:"urlRedirectDescription,omitempty"`
URLRedirectFavIcon string `structs:"urlRedirectFavIcon,omitempty"`
URLRedirectKeywords string `structs:"urlRedirectKeywords,omitempty"`
}
NameserverRecordRequest API model.
type NameserverService ¶
type NameserverService service
NameserverService API access to Nameservers.
func (*NameserverService) Check ¶
func (s *NameserverService) Check(domain string, nameservers []string) (*NameserverCheckResponse, error)
Check checks a domain on nameservers.
func (*NameserverService) Create ¶ added in v0.3.2
func (s *NameserverService) Create(request *NameserverCreateRequest) (int, error)
Create creates a nameserver.
func (*NameserverService) CreateRecord ¶
func (s *NameserverService) CreateRecord(request *NameserverRecordRequest) (string, error)
CreateRecord creates a DNS record.
func (*NameserverService) DeleteRecord ¶
func (s *NameserverService) DeleteRecord(recID string) error
DeleteRecord deletes a DNS record.
func (*NameserverService) FindRecordByID ¶ added in v0.6.0
func (s *NameserverService) FindRecordByID(recID string) (*NameserverRecord, *NameserverDomain, error)
FindRecordByID search a DNS record by ID.
func (*NameserverService) Info ¶
func (s *NameserverService) Info(request *NameserverInfoRequest) (*NameserverInfoResponse, error)
Info gets information.
func (*NameserverService) List
deprecated
added in
v0.2.0
func (s *NameserverService) List(domain string) (*NameserverListResponse, error)
List lists nameservers for a domain.
Deprecated: use ListWithParams instead.
func (*NameserverService) ListWithParams ¶ added in v0.9.0
func (s *NameserverService) ListWithParams(request *NameserverListRequest) (*NameserverListResponse, error)
ListWithParams lists nameservers for a domain.
func (*NameserverService) UpdateRecord ¶
func (s *NameserverService) UpdateRecord(recID string, request *NameserverRecordRequest) error
UpdateRecord updates a DNS record.
type NamserverInfoResponse
deprecated
type NamserverInfoResponse = NameserverInfoResponse
NamserverInfoResponse API model.
Deprecated: Use NameserverInfoResponse instead.
type NamserverListResponse
deprecated
added in
v0.2.0
type NamserverListResponse = NameserverListResponse
NamserverListResponse API model.
Deprecated: Use NameserverListResponse instead.
type Response ¶
type Response struct {
Code int `xmlrpc:"code"`
Message string `xmlrpc:"msg"`
ReasonCode string `xmlrpc:"reasonCode"`
Reason string `xmlrpc:"reason"`
ResponseData map[string]any `xmlrpc:"resData"`
}
Response is a INWX API response. This wraps the standard http.Response returned from INWX.