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 Incompatible versions in this module v2.7.2+incompatible Jul 31, 2019 v2.7.1+incompatible Jul 22, 2019 v2.7.0+incompatible Jul 17, 2019 v2.6.0+incompatible May 27, 2019 v2.5.0+incompatible Apr 18, 2019 v2.4.0+incompatible Mar 26, 2019 v2.3.0+incompatible Mar 11, 2019 v2.2.0+incompatible Feb 9, 2019 v2.1.0+incompatible Jan 24, 2019 v2.0.1+incompatible Jan 9, 2019 v2.0.0+incompatible Jan 9, 2019