Documentation ¶
Index ¶
- type APIResponse
- type Client
- func (c Client) AddRecord(ctx context.Context, domainID int, record Record) error
- func (c Client) DeleteRecord(ctx context.Context, domainID, recordID int) error
- func (c Client) GetDomains(ctx context.Context) ([]Domain, error)
- func (c Client) GetRecords(ctx context.Context, domainID int) ([]Record, error)
- func (c Client) UpdateRecord(ctx context.Context, domainID, recordID int, record Record) error
- type Domain
- type DomainsResponse
- type NameserverRecordPayload
- type Record
- type RecordsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type APIResponse struct { Status string `json:"status,omitempty"` Details map[string][]string `json:"errors,omitempty"` }
func (APIResponse) Error ¶
func (a APIResponse) Error() string
type DomainsResponse ¶
type DomainsResponse struct {
Data []Domain `json:"domains,omitempty"`
}
type NameserverRecordPayload ¶
type NameserverRecordPayload struct {
Data Record `json:"nameserver_record,omitempty"`
}
type RecordsResponse ¶
type RecordsResponse struct {
Data []Record `json:"records,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.