internal

package
v4.13.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 7 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 iwantmyname client.

func NewClient

func NewClient(username string, password string) *Client

NewClient creates a new Client.

func (Client) SendRequest added in v4.12.0

func (c Client) SendRequest(ctx context.Context, record Record) error

SendRequest send a request (create/add/delete) to the API.

type Record

type Record struct {
	Hostname string `url:"hostname,omitempty"`
	Type     string `url:"type,omitempty"`
	Value    string `url:"value,omitempty"`
	TTL      int    `url:"ttl,omitempty"`
}

Record represents a record.

Jump to

Keyboard shortcuts

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