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 + func GetDNSRecordIdx(records []DNSRecord, record DNSRecord) (int, error) + type Client struct + BaseURL string + HTTPClient *http.Client + func NewClient(customerNumber, apiKey, 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 Other modules containing this package github.com/soulik/lego