Versions in this module Expand all Collapse all v1 v1.3.0 Jun 3, 2021 Changes in this version + func CheckRecordType(recordType string) bool + func HashString(s string) int + func HashStrings(strings []string) string + type Client struct + ApiUser string + Http *http.Client + Ip string + Token string + URL string + Username string + func New() (*Client, error) + func NewClient(username string, apiuser string, token string, ip string, useSandbox bool) (*Client, error) + func (c *Client) AddRecord(domain string, record *Record) (*Record, error) + func (c *Client) CreateHash(record *Record) int + func (c *Client) DeleteRecord(domain string, hashId int) error + func (c *Client) FindRecordByHash(hashId int, records []Record) (*Record, error) + func (c *Client) GetDomains() ([]Domain, error) + func (c *Client) GetHosts(domain string) ([]Record, error) + func (c *Client) GetNS(domain string) ([]string, error) + func (c *Client) NewRequest(body map[string]string) (*http.Request, error) + func (c *Client) ReadRecord(domain string, hashId int) (*Record, error) + func (c *Client) RemoveRecordByHash(hashId int, records []Record) []Record + func (c *Client) ResetNS(domain string) error + func (c *Client) SetHosts(domain string, records []Record) ([]Record, error) + func (c *Client) SetNS(domain string, servers []string) ([]string, error) + func (c *Client) UpdateRecord(domain string, hashId int, record *Record) error + type Domain struct + ID string + Name string + type DomainsResponse struct + CommandResponse struct{ ... } + Errors []struct{ ... } + XMLName xml.Name + type NSListResponse struct + CommandResponse struct{ ... } + Errors []struct{ ... } + XMLName xml.Name + type NSSetCustomRepsonse struct + CommandResponse struct{ ... } + Errors []struct{ ... } + XMLName xml.Name + type NSSetDefaultResponse struct + CommandResponse struct{ ... } + Errors []struct{ ... } + XMLName xml.Name + type Record struct + Address string + AssociatedAppTitle string + FriendlyName string + Id int + IsActive bool + IsDDNSEnabled bool + MXPref int + Name string + RecordType string + TTL int + func RemoveParkingRecords(domain string, records []Record) []Record + func (r *Record) Equal(other *Record) bool + type RecordsCreateResult struct + CommandResponse struct{ ... } + Errors []struct{ ... } + XMLName xml.Name + type RecordsResponse struct + CommandResponse struct{ ... } + Errors []struct{ ... } + XMLName xml.Name Other modules containing this package github.com/namecheap/go-namecheap-sdk/v2