internal

package
v4.14.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 14 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(ctx context.Context, domain string, record Record) error

func (Client) RemoveRecord

func (c Client) RemoveRecord(ctx context.Context, 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"`
}

type Signer

type Signer struct {
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner() *Signer

func (Signer) Sign

func (c Signer) Sign(uri string, body, login, apiKey string) string

Jump to

Keyboard shortcuts

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