dynadot

package
v0.4.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(apiKey, apiSecret string) (*Client, error)

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)

func (*Client) SetTimeout

func (c *Client) SetTimeout(timeout time.Duration) *Client

type DnsMainRecord

type DnsMainRecord struct {
	RecordType   string `json:"record_type"`
	RecordValue1 string `json:"record_value1"`
	RecordValue2 string `json:"record_value2,omitempty"`
}

type DnsSubRecord

type DnsSubRecord struct {
	SubHost      string `json:"sub_host"`
	RecordType   string `json:"record_type"`
	RecordValue1 string `json:"record_value1"`
	RecordValue2 string `json:"record_value2,omitempty"`
}

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) GetCode

func (r *RemoveDnsResponse) GetCode() int

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) GetCode

func (r *SetDnsResponse) GetCode() int

func (*SetDnsResponse) GetMessage

func (r *SetDnsResponse) GetMessage() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL