ddregister

package
v1.0.47 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Timeout time.Duration `yaml:"timeout"`
}

Configuration values

type Registration

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

Concrete implementation

func New

func New() *Registration

func NewWithConfig

func NewWithConfig(cfg Config) *Registration

func (*Registration) GetExternalAddress

func (dd *Registration) GetExternalAddress() (net.IP, error)

GetExternalAddress returns the current external IP address as reported by https://api.ipify.org

func (*Registration) RegisterAddress

func (dd *Registration) RegisterAddress(host, user, password string, addr net.IP, offline bool) error

RegisterAddress registers address with Google DNS and returns the response https://support.google.com/domains/answer/6147083?hl=en

func (*Registration) String

func (dd *Registration) String() string

Jump to

Keyboard shortcuts

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