Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client the Epik API client.
func (Client) CreateHostRecord ¶
func (c Client) CreateHostRecord(ctx context.Context, domain string, record RecordRequest) (*Data, error)
CreateHostRecord creates a record for a domain. https://docs.userapi.epik.com/v2/#/DNS%20Host%20Records/createHostRecord
func (Client) GetDNSRecords ¶
GetDNSRecords gets DNS records for a domain. https://docs.userapi.epik.com/v2/#/DNS%20Host%20Records/getDnsRecord
func (Client) RemoveHostRecord ¶
func (c Client) RemoveHostRecord(ctx context.Context, domain string, recordID string) (*Data, error)
RemoveHostRecord removes a record for a domain. https://docs.userapi.epik.com/v2/#/DNS%20Host%20Records/removeHostRecord
type CreateHostRecords ¶
type CreateHostRecords struct {
Payload RecordRequest `json:"create_host_records_payload"`
}
type GetDNSRecordResponse ¶
type RecordRequest ¶
type SetHostRecords ¶
type SetHostRecords struct {
Payload []RecordRequest `json:"set_host_records_payload"`
}
Click to show internal directories.
Click to hide internal directories.