Documentation ¶
Overview ¶
Package freemyip contains a client of the DNS API of freemyip.
Index ¶
- Constants
- type Client
- func (c Client) DeleteDomain(ctx context.Context, domain string) (string, error)
- func (c Client) DeleteTXTRecord(ctx context.Context, domain string) (string, error)
- func (c Client) EditTXTRecord(ctx context.Context, domain, value string) (string, error)
- func (c Client) UpdateDomain(ctx context.Context, domain, myIP string) (string, error)
Constants ¶
View Source
const RootDomain = "freemyip.com"
RootDomain the root domain of all domains.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client an API client for freemyip.
func (Client) DeleteDomain ¶
DeleteDomain deletes a domain.
- `domain` is the custom part of the real domain. (ex: `YOUR_DOMAIN` in `YOUR_DOMAIN.freemyip.com`)
func (Client) DeleteTXTRecord ¶
DeleteTXTRecord delete a TXT record for a domain.
- `domain` is the custom part of the real domain. (ex: `YOUR_DOMAIN` in `YOUR_DOMAIN.freemyip.com`)
- `value` is the TXT record content.
func (Client) EditTXTRecord ¶
EditTXTRecord creates or updates a TXT record value for a domain.
- `domain` is the custom part of the real domain. (ex: `YOUR_DOMAIN` in `YOUR_DOMAIN.freemyip.com`)
- `value` is the TXT record content.
Click to show internal directories.
Click to hide internal directories.