Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultApiURLPrefix string = "https://www.namesilo.com/api"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSAddRecordsResponse ¶
type DNSDeleteRecordsResponse ¶
type DNSDeleteRecordsResponse DNSAddRecordsResponse
type DNSUpdateRecordsResponse ¶
type DNSUpdateRecordsResponse DNSAddRecordsResponse
type ListDNSRecordsResponse ¶
type NamesiloApi ¶
type NamesiloApi interface { ListDNSRecords() ([]ResourceRecord, error) UpdateDNSRecord(rr ResourceRecord) error AddDNSRecord(rr ResourceRecord) error DeleteDNSRecord(rr ResourceRecord) error }
func NewNamesiloApi ¶
func NewNamesiloApi(domain, apiKey string) NamesiloApi
func NewNamesiloApiWithServer ¶
func NewNamesiloApiWithServer(domain, apiKey, apiPrefix string) NamesiloApi
type ResourceRecord ¶
type ResourceRecord struct { XMLName xml.Name `xml:"resource_record"` RecordId string `xml:"record_id"` Type string `xml:"type"` Host string `xml:"host"` Value string `xml:"value"` TTL int `xml:"ttl"` Distance int `xml:"distance"` }
func (ResourceRecord) Equals ¶
func (r ResourceRecord) Equals(other interface{}) bool
func (ResourceRecord) EqualsRecord ¶
func (r ResourceRecord) EqualsRecord(other ResourceRecord) bool
Click to show internal directories.
Click to hide internal directories.