Versions in this module Expand all Collapse all v1 v1.0.6 May 5, 2023 v1.0.5 Dec 30, 2021 v1.0.4 Jun 3, 2021 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