gname

package
v0.3.13 Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddDomainResolutionRequest

type AddDomainResolutionRequest struct {
	ZoneName    string `json:"ym"`
	RecordType  string `json:"lx"`
	RecordName  string `json:"zj"`
	RecordValue string `json:"jlz"`
	MX          int32  `json:"mx"`
	TTL         int32  `json:"ttl"`
}

type AddDomainResolutionResponse

type AddDomainResolutionResponse struct {
	Data json.Number `json:"data"`
	// contains filtered or unexported fields
}

func (*AddDomainResolutionResponse) GetCode

func (r *AddDomainResolutionResponse) GetCode() int32

func (*AddDomainResolutionResponse) GetMessage

func (r *AddDomainResolutionResponse) GetMessage() string

type BaseResponse

type BaseResponse interface {
	GetCode() int32
	GetMessage() string
}

type Client

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

func NewClient

func NewClient(appId, appKey string) *Client

func (*Client) AddDomainResolution

func (c *Client) AddDomainResolution(req *AddDomainResolutionRequest) (*AddDomainResolutionResponse, error)

func (*Client) DeleteDomainResolution

func (c *Client) DeleteDomainResolution(req *DeleteDomainResolutionRequest) (*DeleteDomainResolutionResponse, error)

func (*Client) ListDomainResolution

func (c *Client) ListDomainResolution(req *ListDomainResolutionRequest) (*ListDomainResolutionResponse, error)

func (*Client) ModifyDomainResolution

func (c *Client) ModifyDomainResolution(req *ModifyDomainResolutionRequest) (*ModifyDomainResolutionResponse, error)

func (*Client) WithTimeout

func (c *Client) WithTimeout(timeout time.Duration) *Client

type DeleteDomainResolutionRequest

type DeleteDomainResolutionRequest struct {
	ZoneName string `json:"ym"`
	RecordID int64  `json:"jxid"`
}

type DeleteDomainResolutionResponse

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

func (*DeleteDomainResolutionResponse) GetCode

func (r *DeleteDomainResolutionResponse) GetCode() int32

func (*DeleteDomainResolutionResponse) GetMessage

func (r *DeleteDomainResolutionResponse) GetMessage() string

type ListDomainResolutionRequest

type ListDomainResolutionRequest struct {
	ZoneName string `json:"ym"`
	Page     *int32 `json:"page,omitempty"`
	PageSize *int32 `json:"limit,omitempty"`
}

type ListDomainResolutionResponse

type ListDomainResolutionResponse struct {
	Count    int32               `json:"count"`
	Data     []*ResolutionRecord `json:"data"`
	Page     int32               `json:"page"`
	PageSize int32               `json:"pagesize"`
	// contains filtered or unexported fields
}

func (*ListDomainResolutionResponse) GetCode

func (r *ListDomainResolutionResponse) GetCode() int32

func (*ListDomainResolutionResponse) GetMessage

func (r *ListDomainResolutionResponse) GetMessage() string

type ModifyDomainResolutionRequest

type ModifyDomainResolutionRequest struct {
	ID          int64  `json:"jxid"`
	ZoneName    string `json:"ym"`
	RecordType  string `json:"lx"`
	RecordName  string `json:"zj"`
	RecordValue string `json:"jlz"`
	MX          int32  `json:"mx"`
	TTL         int32  `json:"ttl"`
}

type ModifyDomainResolutionResponse

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

func (*ModifyDomainResolutionResponse) GetCode

func (r *ModifyDomainResolutionResponse) GetCode() int32

func (*ModifyDomainResolutionResponse) GetMessage

func (r *ModifyDomainResolutionResponse) GetMessage() string

type ResolutionRecord

type ResolutionRecord struct {
	ID          json.Number `json:"id"`
	ZoneName    string      `json:"ym"`
	RecordType  string      `json:"lx"`
	RecordName  string      `json:"zjt"`
	RecordValue string      `json:"jxz"`
	MX          int32       `json:"mx"`
}

Jump to

Keyboard shortcuts

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