Versions in this module Expand all Collapse all v4 v4.17.6 Jul 4, 2024 v4.17.5 Jul 4, 2024 v4.17.4 Jul 4, 2024 Changes in this version + func GetDNSRecordIdx(records []DNSRecord, record DNSRecord) (int, error) + type Client struct + HTTPClient *http.Client + func NewClient(customerNumber, apiKey, apiPassword string) (*Client, error) + func (c *Client) CreateSessionContext(ctx context.Context) (context.Context, error) + func (c *Client) GetDNSRecords(ctx context.Context, hostname string) ([]DNSRecord, error) + func (c *Client) Logout(ctx context.Context) error + func (c *Client) UpdateDNSRecord(ctx context.Context, domainName string, records []DNSRecord) error + type DNSRecord struct + DeleteRecord bool + Destination string + Hostname string + ID int + Priority string + RecordType string + State string + TTL int + type DNSRecordSet struct + DNSRecords []DNSRecord + type InfoDNSRecordsRequest struct + APIKey string + APISessionID string + ClientRequestID string + CustomerNumber string + DomainName string + type InfoDNSRecordsResponse struct + APISessionID string + DNSRecords []DNSRecord + type LoginRequest struct + APIKey string + APIPassword string + ClientRequestID string + CustomerNumber string + type LoginResponse struct + APISessionID string + type LogoutRequest struct + APIKey string + APISessionID string + ClientRequestID string + CustomerNumber string + type Request struct + Action string + Param any + type ResponseMsg struct + Action string + ClientRequestID string + LongMessage string + ResponseData json.RawMessage + ServerRequestID string + ShortMessage string + Status string + StatusCode int + func (r *ResponseMsg) Error() string + type UpdateDNSRecordsRequest struct + APIKey string + APISessionID string + ClientRequestID string + CustomerNumber string + DNSRecordSet DNSRecordSet + DomainName string