Documentation ¶
Index ¶
- type Client
- func (client *Client) BaseUrl() string
- func (client *Client) CreateRecord(domainName string, dnsRecord *DnsRecord) error
- func (client *Client) DeleteRecord(domainName string, dnsRecord *DnsRecord) error
- func (client *Client) FindDNSRecord(domainName string, dnsRecord *DnsRecord) (*DnsRecord, error)
- func (client *Client) GetDNSRecords(domainName string) (*Domains, error)
- func (client *Client) NewRequest(method string, url string, data []byte) (*http.Request, error)
- func (client *Client) Request(method string, url string, data []byte) (*http.Response, error)
- func (client *Client) UpdateRecord(domainName string, oldDnsRecord *DnsRecord, newDnsRecord *DnsRecord) error
- type Config
- type DnsRecord
- type Domains
- type HttpErrorContent
- type WebsupportError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Config *Config // contains filtered or unexported fields }
func (*Client) CreateRecord ¶
func (*Client) DeleteRecord ¶
func (*Client) FindDNSRecord ¶
func (*Client) GetDNSRecords ¶
func (*Client) NewRequest ¶
type HttpErrorContent ¶
type HttpErrorContent struct {
Content []string `json:"content"`
}
type WebsupportError ¶
type WebsupportError struct { Item DnsRecord `json:"item"` Status string `json:"status"` Errors HttpErrorContent `json:"errors"` }
func (*WebsupportError) Error ¶
func (e *WebsupportError) Error() string
Click to show internal directories.
Click to hide internal directories.