Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct { TransactID string `json:"transactid"` Status string `json:"status"` Message string `json:"message,omitempty"` Code int `json:"code,omitempty"` }
func (APIResponse) Error ¶
func (a APIResponse) Error() string
type Client ¶
Client is the API client.
func (Client) AddRecord ¶
func (c Client) AddRecord(ctx context.Context, query RecordQuery) error
AddRecord The command is intended to add a new DNS record to a specific zone (domain).
func (Client) ListRecords ¶
ListRecords The command is intended to retrieve the list of DNS records for a specific domain.
func (Client) RemoveRecord ¶
func (c Client) RemoveRecord(ctx context.Context, query RecordQuery) error
RemoveRecord The command is intended to remove a DNS record from a specific zone.
type ListRecordQuery ¶
type ListResponse ¶
type ListResponse struct { APIResponse TotalRecords int `json:"total_records,omitempty"` Records []Record `json:"records,omitempty"` }
Click to show internal directories.
Click to hide internal directories.