onamaeddns

package module
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: MIT Imports: 8 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	OfficialAddress string = "ddnsclient.onamae.com:65010"
)

Variables

View Source
var (
	ErrNotConnect error = fmt.Errorf("tls not connected")
)

Functions

This section is empty.

Types

type Client

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

Client represents a DDNS session on TLS connection.

func Dial

func Dial(address string, user string, pass string, timeout time.Duration) (*Client, error)

Dial connects to the given address(<host>:<port>) use 'user' and 'pass'.

func DialWithContext

func DialWithContext(ctx context.Context, address string, user string, pass string, timeout time.Duration) (*Client, error)

DialWithContext connects to the given address(<host>:<port>) use 'user' and 'pass'.

func (*Client) Close

func (self *Client) Close() error

Close closes the session and connection.

func (*Client) Expect

func (self *Client) Expect(rxp *regexp.Regexp, timeout time.Duration) (string, []string, error)

Expect extension function. Wait on the session if want use arbitrary command.

func (*Client) Send

func (self *Client) Send(s string, val ...interface{}) error

Send extension function. Sent to the session if want use arbitrary command.

func (*Client) UpdateIPv4

func (self *Client) UpdateIPv4(host string, domain string, ip string) error

UpdateIPv4 is update value of A record on '<host>.<domain>' to '<ip>'.

Directories

Path Synopsis
cmd
onamaeddns module

Jump to

Keyboard shortcuts

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