internal

package
v0.0.0-...-9cf8579 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2025 License: Apache-2.0 Imports: 6 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 {
	Doc struct {
		Error struct {
			Type   string `json:"$type"`
			Object string `json:"$object"`
			Lang   string `json:"$lang"`
			Detail struct {
				Text string `json:"$"`
			} `json:"detail"`
			Message struct {
				Text string `json:"$"`
			} `json:"msg"`
		} `json:"error"`
	} `json:"doc"`
}

type Client

type Client struct {
	PanelUrl   string
	Username   string
	Password   string
	HttpClient *http.Client
}

func (Client) CreateTXT

func (c Client) CreateTXT(body CreateTxtRecord) (*CreateTxtRecord, error)

func (Client) DeleteTXT

func (c Client) DeleteTXT(body DeleteTxtRecord) (*DeleteTxtRecord, error)

func (Client) ListRecords

func (c Client) ListRecords(body ListRecords) ([]*ListRecords, error)

type CreateTxtRecord

type CreateTxtRecord struct {
	AuthInfo string `url:"authinfo"`
	Out      string `url:"out"`
	Func     string `url:"func"`
	Plid     string `url:"plid"`
	Rtype    string `url:"rtype"`
	Name     string `url:"name"`
	Ttl      int    `url:"ttl"`
	Sok      string `url:"sok"`
	Value    string `url:"value"`
}

type DeleteTxtRecord

type DeleteTxtRecord struct {
	AuthInfo string `url:"authinfo"`
	Out      string `url:"out"`
	Func     string `url:"func"`
	Plid     string `url:"plid"`
	Elid     string `url:"elid"`
	Elname   string `url:"elname"`
}

type ListRecords

type ListRecords struct {
	AuthInfo string `json:"authinfo"`
	TTL      int    `json:"ttl"`
	Rtype    string `json:"rtype"`
	Value    string `json:"value"`
}

Jump to

Keyboard shortcuts

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