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

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