duckdns

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrUnknown is returned if an unknown error occurs.
	ErrUnknown = errors.New("unknown error")
)

Functions

func New

func New(opts Options) ddns.Provider

New creates a new DuckDNS provider.

func ValidateOptions

func ValidateOptions(opts Options) error

ValidateOptions validates the options for the DuckDNS provider.

Types

type Options

type Options struct {
	Token    string `json:"token"`
	Hostname string `json:"hostname"`
}

Options is the set of options for the DuckDNS provider.

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

Provider implements the DNS provider interface for DuckDNS.

func (*Provider) Update

func (p *Provider) Update(ipv4, ipv6 net.IP) error

Update implements the ddns.Provider interface for DuckDNS.

Jump to

Keyboard shortcuts

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