Versions in this module Expand all Collapse all v2 v2.7.2 Jul 31, 2019 v2.7.1 Jul 22, 2019 v2.7.0 Jul 17, 2019 v2.6.0 May 27, 2019 v2.5.0 Apr 18, 2019 v2.4.0 Mar 26, 2019 v2.3.0 Mar 11, 2019 v2.2.0 Feb 9, 2019 v2.1.0 Jan 24, 2019 v2.0.1 Jan 9, 2019 v2.0.0 Jan 9, 2019 Changes in this version + func GetDNSRecordIdx(records []DNSRecord, record DNSRecord) (int, error) + type Client struct + BaseURL string + HTTPClient *http.Client + func NewClient(customerNumber string, apiKey string, apiPassword string) (*Client, error) + func (c *Client) GetDNSRecords(hostname, apiSessionID string) ([]DNSRecord, error) + func (c *Client) Login() (string, error) + func (c *Client) Logout(sessionID string) error + func (c *Client) UpdateDNSRecord(sessionID, 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 interface{} + 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