internal

package
v4.15.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 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 {
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

Client the DuckDNS API client.

func NewClient

func NewClient(token string) *Client

NewClient Creates a new Client.

func (Client) AddTXTRecord

func (c Client) AddTXTRecord(ctx context.Context, domain, value string) error

func (Client) RemoveTXTRecord

func (c Client) RemoveTXTRecord(ctx context.Context, domain string) error

func (Client) UpdateTxtRecord

func (c Client) UpdateTxtRecord(ctx context.Context, domain, txt string, clear bool) error

UpdateTxtRecord Update the domains TXT record To update the TXT record we just need to make one simple get request. In DuckDNS you only have one TXT record shared with the domain and all subdomains.

Jump to

Keyboard shortcuts

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