gname

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 10 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,omitempty"`
	RecordType  *string `json:"lx,omitempty"`
	RecordName  *string `json:"zj,omitempty"`
	RecordValue *string `json:"jlz,omitempty"`
	MX          *int32  `json:"mx,omitempty"`
	TTL         *int32  `json:"ttl,omitempty"`
}

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 Client

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

func NewClient

func NewClient(appId, appKey string) (*Client, error)

func (*Client) AddDomainResolution

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

func (*Client) AddDomainResolutionWithContext

func (c *Client) AddDomainResolutionWithContext(ctx context.Context, req *AddDomainResolutionRequest) (*AddDomainResolutionResponse, error)

func (*Client) DeleteDomainResolution

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

func (*Client) DeleteDomainResolutionWithContext

func (c *Client) DeleteDomainResolutionWithContext(ctx context.Context, req *DeleteDomainResolutionRequest) (*DeleteDomainResolutionResponse, error)

func (*Client) ListDomainResolution

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

func (*Client) ListDomainResolutionWithContext

func (c *Client) ListDomainResolutionWithContext(ctx context.Context, req *ListDomainResolutionRequest) (*ListDomainResolutionResponse, error)

func (*Client) ModifyDomainResolution

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

func (*Client) ModifyDomainResolutionWithContext

func (c *Client) ModifyDomainResolutionWithContext(ctx context.Context, req *ModifyDomainResolutionRequest) (*ModifyDomainResolutionResponse, error)

func (*Client) SetTimeout

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

type DeleteDomainResolutionRequest

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

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 DomainResolutionRecordord

type DomainResolutionRecordord 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"`
}

type ListDomainResolutionRequest

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

type ListDomainResolutionResponse

type ListDomainResolutionResponse struct {
	Count    int32                        `json:"count"`
	Data     []*DomainResolutionRecordord `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,omitempty"`
	ZoneName    *string `json:"ym,omitempty"`
	RecordType  *string `json:"lx,omitempty"`
	RecordName  *string `json:"zj,omitempty"`
	RecordValue *string `json:"jlz,omitempty"`
	MX          *int32  `json:"mx,omitempty"`
	TTL         *int32  `json:"ttl,omitempty"`
}

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

Jump to

Keyboard shortcuts

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