Versions in this module Expand all Collapse all v1 v1.0.4 Mar 10, 2021 v1.0.3 Mar 8, 2021 Changes in this version + type Client struct + Endpoint string + HttpClient *http.Client + Key string + Secret string + func NewClient(endpoint string, key string, secret string) *Client + func (client *Client) AddRecord(domainId int, recordName string, recordType string, recordValue string, ...) (Record, error) + func (client *Client) AddSingleDomain(domainName string) (Domain, error) + func (client *Client) DeleteRecord(domainId int, recordId int) error + func (client *Client) DeleteSingleDomain(domainId int) error + func (client *Client) GetAllDomains(index string, order string) (DomainsList, error) + func (client *Client) GetAllRecords(domainId int) (RecordsList, error) + func (client *Client) GetSingleDomainById(domainId int) (Domain, error) + func (client *Client) GetSingleDomainByName(domainName string) (Domain, error) + func (client *Client) UpdateRecord(domainId int, recordName string, recordType string, recordValue string, ...) error + type Domain struct + ActiveThirdParties []string + Created int + DelegateNameServers []string + FolderId int + GtdEnabled bool + Id int + Name string + NameServers []NameServers + PendingActionId int + ProcessMulti bool + Updated int + VanityId int + VanityNameServers []VanityNameServers + type DomainShort struct + ActiveThirdParties []string + Created int + FolderId int + GtdEnabled bool + Id int + Name string + PendingActionId int + ProcessMulti bool + Updated int + type DomainsList struct + Data []DomainShort + Page int + TotalPackages int + TotalRecords int + type ErrApiRequest struct + Err error + func (e *ErrApiRequest) Error() string + type ErrDomainExists struct + Domain string + Err error + func (e *ErrDomainExists) Error() string + type ErrDomainIdNotFound struct + Err error + Id int + func (e *ErrDomainIdNotFound) Error() string + type ErrDomainIdOrRecordIdNotFound struct + DomainId int + Err error + RecordId int + func (e *ErrDomainIdOrRecordIdNotFound) Error() string + type ErrDomainIdPending struct + Err error + Id int + func (e *ErrDomainIdPending) Error() string + type ErrDomainNotFound struct + Domain string + Err error + func (e *ErrDomainNotFound) Error() string + type ErrFormat struct + Err error + func (e *ErrFormat) Error() string + type ErrRecordExists struct + Err error + Name string + Type string + Value string + func (e *ErrRecordExists) Error() string + type NameServers struct + Fqdn string + Ipv4 string + Ipv6 string + type NewDomain struct + Name string + type NewRecord struct + GtdLocation string + Name string + Ttl int + Type string + Value string + type Record struct + DynamicDns bool + Failed bool + Failover bool + GtdLocation string + HardLink bool + Id int + Monitor bool + Name string + Source int + SourceId int + Ttl int + Type string + Value string + type RecordsList struct + Data []Record + Page int + TotalPages int + TotalRecords int + type Request struct + Body []byte + Method string + Path string + Queries map[string]string + type UpdateRecord struct + GtdLocation string + Id int + Name string + Ttl int + Type string + Value string + type VanityNameServers struct + Fqdn string