Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) AddTXTRecord(ctx context.Context, domain string, subdomain string, ttl int, value string) error
- func (c *Client) GetTXTRecords(ctx context.Context, domain string, subdomain string) ([]RecordObj, error)
- func (c *Client) RemoveSubdomain(ctx context.Context, domain, subdomain string) error
- func (c *Client) RemoveTXTRecord(ctx context.Context, domain string, subdomain string, recordID int) error
- type RPCError
- type RecordObj
Constants ¶
View Source
const DefaultBaseURL = "https://api.loopia.se/RPCSERV"
DefaultBaseURL is url to the XML-RPC api.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { BaseURL string HTTPClient *http.Client // contains filtered or unexported fields }
Client the Loopia client.
func (*Client) AddTXTRecord ¶
func (c *Client) AddTXTRecord(ctx context.Context, domain string, subdomain string, ttl int, value string) error
AddTXTRecord adds a TXT record.
func (*Client) GetTXTRecords ¶
func (c *Client) GetTXTRecords(ctx context.Context, domain string, subdomain string) ([]RecordObj, error)
GetTXTRecords gets TXT records.
func (*Client) RemoveSubdomain ¶
RemoveSubdomain remove a sub-domain.
Click to show internal directories.
Click to hide internal directories.