Versions in this module Expand all Collapse all v0 v0.4.22 Apr 30, 2026 v0.4.21 Apr 8, 2026 v0.4.20 Mar 25, 2026 v0.4.19 Mar 17, 2026 v0.4.18 Mar 4, 2026 v0.4.17 Feb 9, 2026 v0.4.16 Feb 2, 2026 v0.4.15 Jan 26, 2026 v0.4.14 Jan 19, 2026 v0.4.13 Jan 6, 2026 v0.4.12 Dec 27, 2025 v0.4.11 Dec 26, 2025 Changes in this version type DomainRecord + AdminLockState int32 + GroupID json.Number + HealthState int32 + UserLockState int32 + ViewType string v0.4.10 Dec 19, 2025 v0.4.9 Dec 11, 2025 Changes in this version + type Client struct + func NewClient(apiKey, apiSecret string) (*Client, error) + func (c *Client) DomainList(req *DomainListRequest) (*DomainListResponse, error) + func (c *Client) DomainListWithContext(ctx context.Context, req *DomainListRequest) (*DomainListResponse, error) + func (c *Client) RecordCreate(req *RecordCreateRequest) (*RecordCreateResponse, error) + func (c *Client) RecordCreateWithContext(ctx context.Context, req *RecordCreateRequest) (*RecordCreateResponse, error) + func (c *Client) RecordRemove(req *RecordRemoveRequest) (*RecordRemoveResponse, error) + func (c *Client) RecordRemoveWithContext(ctx context.Context, req *RecordRemoveRequest) (*RecordRemoveResponse, error) + func (c *Client) SetTimeout(timeout time.Duration) *Client + type DNSRecord struct + DomainID int64 + Host string + MX int32 + Record string + RecordID int64 + Remark string + State int32 + TTL int32 + Type string + Value string + ViewID int64 + type DomainListRequest struct + GroupID *int64 + Page *int32 + PageSize *int32 + type DomainListResponse struct + Data ... + func (r *DomainListResponse) GetCode() int32 + func (r *DomainListResponse) GetMessage() string + type DomainRecord struct + Domain string + DomainID int64 + State int32 + type RecordCreateRequest struct + DomainID *int64 + Host *string + MX *int32 + Remark *string + TTL *int32 + Type *string + Value *string + ViewID *int64 + type RecordCreateResponse struct + Data *DNSRecord + func (r *RecordCreateResponse) GetCode() int32 + func (r *RecordCreateResponse) GetMessage() string + type RecordRemoveRequest struct + DomainID *int64 + RecordID *int64 + type RecordRemoveResponse struct + func (r *RecordRemoveResponse) GetCode() int32 + func (r *RecordRemoveResponse) GetMessage() string