Versions in this module Expand all Collapse all v1 v1.2.1 Nov 5, 2018 v1.2.0 Nov 5, 2018 Changes in this version + type APIError struct + Code int + Description string + Field string + func (a *APIError) Error() string + type Client struct + func NewClient(opts ClientOpts) *Client + func (c *Client) AddRecord(domainID int, body Record) (*Record, error) + func (c *Client) DeleteRecord(domainID, recordID int) error + func (c *Client) GetDomainByName(domainName string) (*Domain, error) + func (c *Client) ListRecords(domainID int) ([]*Record, error) + type ClientOpts struct + BaseURL string + HTTPClient *http.Client + Token string + UserAgent string + type Config struct + BaseURL string + HTTPClient *http.Client + PollingInterval time.Duration + PropagationTimeout time.Duration + TTL int + Token string + func NewDefaultConfig() *Config + type DNSProvider struct + func NewDNSProvider() (*DNSProvider, error) + func NewDNSProviderConfig(config *Config) (*DNSProvider, error) + func (d *DNSProvider) CleanUp(domain, token, keyAuth string) error + func (d *DNSProvider) Present(domain, token, keyAuth string) error + func (d *DNSProvider) Timeout() (timeout, interval time.Duration) + type Domain struct + ID int + Name string + type Record struct + Content string + Email string + ID int + Name string + TTL int + Type string