internal

package
v4.19.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 9 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
}

func NewClient

func NewClient(apiUser string, apiKey string) *Client

func (*Client) AddTXTRecord

func (c *Client) AddTXTRecord(ctx context.Context, domain, name, value string, ttl int) (int, error)

AddTXTRecord adds a dns record to a domain. https://github.com/GleSYS/API/wiki/API-Documentation#domainaddrecord

func (*Client) DeleteTXTRecord

func (c *Client) DeleteTXTRecord(ctx context.Context, recordID int) error

DeleteTXTRecord removes a dns record from a domain. https://github.com/GleSYS/API/wiki/API-Documentation#domaindeleterecord

type Record

type Record struct {
	RecordID int `json:"recordid"`
}

type Response

type Response struct {
	Status Status `json:"status"`
	Record Record `json:"record"`
}

type Status

type Status struct {
	Code int `json:"code"`
}

Jump to

Keyboard shortcuts

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