Documentation ¶ Index ¶ type APIError func (a APIError) Error() string type Client func NewClient(login string, apiKey string) *Client func (c Client) AddRecord(domain string, record Record) error func (c Client) RemoveRecord(domain string, record Record) error type Record Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type APIError ¶ type APIError struct { Message string `json:"error"` Debug string `json:"debug"` } func (APIError) Error ¶ func (a APIError) Error() string type Client ¶ type Client struct { HTTPClient *http.Client // contains filtered or unexported fields } func NewClient ¶ func NewClient(login string, apiKey string) *Client func (Client) AddRecord ¶ func (c Client) AddRecord(domain string, record Record) error func (Client) RemoveRecord ¶ func (c Client) RemoveRecord(domain string, record Record) error type Record ¶ type Record struct { Name string `url:"name,omitempty"` Type string `url:"type,omitempty"` Data string `url:"data,omitempty"` TTL int `url:"ttl,omitempty"` } Source Files ¶ View all Source files client.go types.go Click to show internal directories. Click to hide internal directories.