internal

package
v4.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 11 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 {
	Code    int32    `json:"code"`
	Details []Detail `json:"details"`
	Message string   `json:"message"`
}

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(oauthToken string, orgID int64) (*Client, error)

type Detail

type Detail struct {
	Type string `json:"@type"`
}

func (Detail) String

func (d Detail) String() string

type Record

type Record struct {
	ID         int64  `json:"recordId,omitempty"`
	Address    string `json:"address,omitempty"`
	Exchange   string `json:"exchange,omitempty"`
	Flag       int64  `json:"flag,omitempty"`
	Name       string `json:"name,omitempty"`
	Port       int64  `json:"port,omitempty"`
	Preference int64  `json:"preference,omitempty"`
	Priority   int64  `json:"priority,omitempty"`
	Tag        string `json:"tag,omitempty"`
	Target     string `json:"target,omitempty"`
	Text       string `json:"text,omitempty"`
	TTL        int    `json:"ttl,omitempty"`
	Type       string `json:"type,omitempty"`
	Value      string `json:"value,omitempty"`
	Weight     int64  `json:"weight,omitempty"`
}

Jump to

Keyboard shortcuts

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