internal

package
v0.0.0-...-4f4ac90 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	Message string `json:"error"`
	Debug   string `json:"debug"`
}

func (APIError) Error

func (a APIError) Error() string

type Client

type Client struct {
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(login string, apiKey string) *Client

func (Client) AddRecord

func (c Client) AddRecord(domain string, record Record) error

func (Client) RemoveRecord

func (c Client) RemoveRecord(domain string, record Record) error

type Record

type Record struct {
	Name string `url:"name,omitempty"`
	Type string `url:"type,omitempty"`
	Data string `url:"data,omitempty"`
	TTL  int    `url:"ttl,omitempty"`
}

Jump to

Keyboard shortcuts

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