Documentation
¶
Index ¶
- type Client
- func (c *Client) RemoveDns(domain string, req *RemoveDnsRequest) (*RemoveDnsResponse, error)
- func (c *Client) RemoveDnsWithContext(ctx context.Context, domain string, req *RemoveDnsRequest) (*RemoveDnsResponse, error)
- func (c *Client) SetDns(domain string, req *SetDnsRequest) (*SetDnsResponse, error)
- func (c *Client) SetDnsWithContext(ctx context.Context, domain string, req *SetDnsRequest) (*SetDnsResponse, error)
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- type DnsMainRecord
- type DnsSubRecord
- type RemoveDnsRequest
- type RemoveDnsResponse
- type SetDnsRequest
- type SetDnsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) RemoveDns ¶
func (c *Client) RemoveDns(domain string, req *RemoveDnsRequest) (*RemoveDnsResponse, error)
func (*Client) RemoveDnsWithContext ¶
func (c *Client) RemoveDnsWithContext(ctx context.Context, domain string, req *RemoveDnsRequest) (*RemoveDnsResponse, error)
func (*Client) SetDns ¶
func (c *Client) SetDns(domain string, req *SetDnsRequest) (*SetDnsResponse, error)
func (*Client) SetDnsWithContext ¶
func (c *Client) SetDnsWithContext(ctx context.Context, domain string, req *SetDnsRequest) (*SetDnsResponse, error)
type DnsMainRecord ¶
type DnsSubRecord ¶
type RemoveDnsRequest ¶
type RemoveDnsRequest struct {
DnsMainList []*DnsMainRecord `json:"dns_main_list,omitempty"`
SubList []*DnsSubRecord `json:"sub_list,omitempty"`
}
type RemoveDnsResponse ¶
type RemoveDnsResponse struct {
// contains filtered or unexported fields
}
func (*RemoveDnsResponse) GetMessage ¶
func (r *RemoveDnsResponse) GetMessage() string
type SetDnsRequest ¶
type SetDnsRequest struct {
DnsMainList []*DnsMainRecord `json:"dns_main_list,omitempty"`
SubList []*DnsSubRecord `json:"sub_list,omitempty"`
TTL *int64 `json:"ttl,omitempty"`
AddDnsToCurrentSetting *bool `json:"add_dns_to_current_setting,omitempty"`
}
type SetDnsResponse ¶
type SetDnsResponse struct {
// contains filtered or unexported fields
}
func (*SetDnsResponse) GetMessage ¶
func (r *SetDnsResponse) GetMessage() string
Click to show internal directories.
Click to hide internal directories.