Versions in this module Expand all Collapse all v1 v1.0.1 Apr 3, 2024 v1.0.0 Jan 26, 2023 Changes in this version + type Client struct + Config *Config + func NewClient(config *Config) *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 struct + ApiKey string + ApiSecret string + type DnsRecord struct + Content string + Id int + Name string + Ttl int + Type string + type Domains struct + Items []DnsRecord + type HttpErrorContent struct + Content []string + type WebsupportError struct + Errors HttpErrorContent + Item DnsRecord + Status string + func (e *WebsupportError) Error() string