Documentation ¶
Index ¶
- type Client
- func (c *Client) AddRecord(ctx context.Context, zoneName string, record Record) (int64, error)
- func (c *Client) DeleteRecord(ctx context.Context, zoneName string, id int64) error
- func (c *Client) EditRecord(ctx context.Context, zoneName string, id int64, record Record) error
- func (c *Client) GetRecords(ctx context.Context, zoneName string) ([]Record, error)
- type Record
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is a Simply.com API client.
func (*Client) DeleteRecord ¶
DeleteRecord deletes a record.
func (*Client) EditRecord ¶
EditRecord updates a record.
type Record ¶
type Record struct { ID int64 `json:"record_id,omitempty"` Name string `json:"name,omitempty"` Data string `json:"data,omitempty"` Type string `json:"type,omitempty"` TTL int `json:"ttl,omitempty"` Priority int `json:"priority,omitempty"` }
Record represents the content of a DNS record.
Click to show internal directories.
Click to hide internal directories.