Versions in this module Expand all Collapse all v4 v4.18.1 Sep 18, 2024 Changes in this version + type APIRequest struct + Auth string + Command string + Data any + User string + type APIResponse struct + Response ResponsePayload[D] + func (a APIResponse[D]) GetCode() int + func (a APIResponse[D]) GetResult() string + type Client struct + HTTPClient *http.Client + func NewClient(username string, password string) *Client + func (c *Client) AddRecord(ctx context.Context, zone string, record DNSRow) error + func (c *Client) Commit(ctx context.Context, zone string) error + func (c *Client) DeleteRecord(ctx context.Context, zone string, recordID string) error + func (c *Client) GetRecords(ctx context.Context, zone string) ([]DNSRow, error) + func (c *Client) Ping(ctx context.Context) error + type DNSRow struct + Data string + ID string + Name string + TTL json.Number + Type string + type DNSRowRequest struct + Data string + Domain string + ID string + Name string + TTL json.Number + Type string + type Response interface + GetCode func() int + GetResult func() string + type ResponsePayload struct + Code int + Command string + Data D + Result string + SvTRID string + Timestamp int + type Rows struct + Rows []DNSRow