internal

package
v4.9.11 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 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) Do

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

Do 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