Versions in this module Expand all Collapse all v4 v4.1.2 Nov 8, 2020 v4.0.6 Nov 10, 2020 v4.0.5 Nov 10, 2020 v4.0.4 Nov 8, 2020 v4.0.3 Nov 8, 2020 v4.0.2 Nov 8, 2020 Changes in this version + type APIException struct + Message string + StatusCode int32 + Type string + func (a APIException) Error() string + type APIResponse struct + Exception *APIException + StatusCode int32 + type Client struct + BaseURL string + HTTPClient *http.Client + func NewClient() *Client + func (c Client) AddNewRecord(domainID int64, record DNSRecord) error + func (c Client) DeleteRecord(domainID, recordID int64) error + func (c Client) GetRecords(hostname, recordType string) ([]DNSRecord, error) + func (c Client) GetRootDomain(hostname string) (*DNSHostname, error) + type DNSHostname struct + DomainName string + Hostname string + ID int64 + Node string + type DNSRecord struct + Content string + DomainID int64 + DomainName string + Hostname string + ID int64 + NodeName string + State bool + TTL int + TextData string + Type string + type RecordResponse struct + type RecordsResponse struct + DNSRecords []DNSRecord + type TokenTransport struct + Transport http.RoundTripper + func NewTokenTransport(apiKey string) (*TokenTransport, error) + func (t *TokenTransport) Client() *http.Client + func (t *TokenTransport) RoundTrip(req *http.Request) (*http.Response, error) + func (t *TokenTransport) Wrap(client *http.Client) *http.Client