Versions in this module Expand all Collapse all v4 v4.0.2 Jun 12, 2023 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 + HTTPClient *http.Client + func NewClient() *Client + func (c Client) AddNewRecord(ctx context.Context, domainID int64, record DNSRecord) error + func (c Client) DeleteRecord(ctx context.Context, domainID, recordID int64) error + func (c Client) GetRecords(ctx context.Context, hostname, recordType string) ([]DNSRecord, error) + func (c Client) GetRootDomain(ctx context.Context, 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