Versions in this module Expand all Collapse all v0 v0.10.1 May 12, 2017 v0.10.0 May 1, 2017 Changes in this version + const APIDNSAddCNAME + const APIDNSAddIPv4 + const APIDNSAddIPv6 + const APIDNSAddMX + const APIDNSAddNS + const APIDNSAddSRV + const APIDNSAddTXT + const APIDNSDeleteCNAME + const APIDNSDeleteIPv4 + const APIDNSDeleteIPv6 + const APIDNSDeleteMX + const APIDNSDeleteNS + const APIDNSDeleteSRV + const APIDNSDeleteTXT + const APIDNSUpdateCNAME + const APIDNSUpdateIPv4 + const APIDNSUpdateIPv6 + const APIDNSUpdateMX + const APIDNSUpdateNS + const APIDNSUpdateSOA + const APIDNSUpdateSRV + const APIDNSUpdateTXT + const APIDomainsSearch + const APITESTURL + const APIURL + func Atoi(s string) int64 + func GetResponse(c http.Client, url string) (*maplist, error) + func ParseBool(b string) bool + func ParseDate(s string) time.Time + func PostResponse(c http.Client, url string) (*maplist, error) + type Client struct + ID string + Key string + URL string + func NewClient(api string, resellerid int64, apikey string) *Client + func (c *Client) AddARecord(domain, address, host string, ttl int64, six bool) error + func (c *Client) AddCNAME(domain, value, host string, ttl int64) error + func (c *Client) AddMX(domain, value, host string, ttl int64, priority uint16) error + func (c *Client) AddNS(domain, value, host string, ttl int64, priority uint16) error + func (c *Client) AddSRV(domain, value, host string, ttl int64, priority, port, weight uint16) error + func (c *Client) AddTXT(domain, value, host string, ttl int64, priority uint16) error + func (c *Client) Authenticate(username, password string) (*CustomerDetails, error) + func (c *Client) CustomerByID(cid int64) (*CustomerDetails, error) + func (c *Client) Customers(page int) (*CustomerList, error) + func (c *Client) DNSActive(id string) bool + func (c *Client) DeleteARecord(domain, value, host string, six bool) error + func (c *Client) DeleteCNAME(domain, value, host string) error + func (c *Client) DeleteMX(domain, value, host string) error + func (c *Client) DeleteNS(domain, value, host string) error + func (c *Client) DeleteSRV(domain, value, host string, port, weight uint16) error + func (c *Client) DeleteTXT(domain, value, host string) error + func (c *Client) Domain(name string) (*Domain, error) + func (c *Client) DomainsFor(customer string, page int) (*DomainList, error) + func (c *Client) EditARecord(domain, oldip, newip, host string, ttl int64, six bool) error + func (c *Client) EditCNAME(domain, oldip, newip, host string, ttl int64) error + func (c *Client) EditMX(domain, oldip, newip, host string, ttl int64, priority uint16) error + func (c *Client) EditNS(domain, oldip, newip, host string, ttl int64) error + func (c *Client) EditSOA(domain, person string, refresh, retry, expire, ttl int64) error + func (c *Client) EditSRV(domain, oldval, newval, host string, ttl int64, priority, port, weight uint) error + func (c *Client) EditTXT(domain, oldip, newip, host string, ttl int64) error + func (c *Client) GetDNSRecords(domain, value, host, t string, page int) (*DNSRecordList, error) + type Customer struct + City string + Company string + Country string + Email string + ID int64 + Name string + Status string + TotalReceipts string + Websites int64 + type CustomerDetails struct + Address string + City string + Country string + Created time.Time + Email string + ID int64 + Language string + Name string + PIN string + ParentReseller int64 + Phone string + State string + Status string + TotalReceipts string + Twofactor bool + Zip string + type CustomerList struct + Count int64 + Customers Customers + MaxRecords int64 + type Customers []*Customer + func (slice Customers) Len() int + func (slice Customers) Less(i, j int) bool + func (slice Customers) Swap(i, j int) + type DNSRecord struct + Host string + Port uint16 + Priority uint16 + Status string + TTL int64 + Type string + Value string + Weight uint16 + func ParseDNS(in interface{}) *DNSRecord + type DNSRecordList struct + Count int64 + MaxRecords int64 + Records DNSRecords + type DNSRecords []*DNSRecord + func (slice DNSRecords) Len() int + func (slice DNSRecords) Less(i, j int) bool + func (slice DNSRecords) Swap(i, j int) + type Domain struct + Autorenew bool + CreationDT time.Time + CreationTime time.Time + CustomerID int64 + CustomerLock bool + Description string + Endtime time.Time + EntityID int64 + OrderID int64 + ResellerLock bool + Status string + Timestamp time.Time + TransferLock bool + TypeID int64 + TypeKey string + TypeName string + type DomainList struct + Count int64 + Domains Domains + MaxRecords int64 + type Domains []*Domain + func (slice Domains) Len() int + func (slice Domains) Less(i, j int) bool + func (slice Domains) Swap(i, j int) + type DomainsByName []*Domain + func (slice DomainsByName) Len() int + func (slice DomainsByName) Less(i, j int) bool + func (slice DomainsByName) Swap(i, j int)