Versions in this module Expand all Collapse all v1 v1.0.0 Dec 11, 2019 Changes in this version + func CheckResponse(r *http.Response) error + type Client struct + BaseURL string + CommonParams CommonParams + Domains *DomainsService + HttpClient *http.Client + UserAgent string + func NewClient(CommonParams CommonParams) *Client + func (c *Client) Do(method, path string, payload url.Values, v interface{}) (*Response, error) + func (client *Client) NewRequest(method, path string, payload url.Values) (*http.Request, error) + type CommonParams struct + ErrorOnEmpty string + Format string + KeepAlive int + Lang string + LoginToken string + Timeout int + UserID string + type Date struct + func (d *Date) UnmarshalJSON(data []byte) error + type Domain struct + AuthToAnquanBao bool + CNameSpeedUp string + CreatedOn string + ExtStatus string + Grade string + GradeTitle string + GroupID json.Number + ID json.Number + IsMark string + IsVIP string + Name string + Owner string + PunyCode string + Records json.Number + Remark string + SearchenginePush string + Status string + TTL json.Number + UpdatedOn string + UserID string + type DomainInfo struct + AllTotal int + DomainTotal int + ErrorTotal json.Number + IsMarkTotal json.Number + LockTotal json.Number + MineTotal json.Number + PauseTotal json.Number + ShareOutTotal int + ShareTotal json.Number + SpamTotal json.Number + VipExpire int + VipTotal json.Number + type DomainsService struct + func (s *DomainsService) Create(domainAttributes Domain) (Domain, *Response, error) + func (s *DomainsService) CreateRecord(domain string, recordAttributes Record) (Record, *Response, error) + func (s *DomainsService) Delete(ID int) (*Response, error) + func (s *DomainsService) DeleteRecord(domain string, recordID string) (*Response, error) + func (s *DomainsService) Get(ID int) (Domain, *Response, error) + func (s *DomainsService) GetRecord(domain string, recordID string) (Record, *Response, error) + func (s *DomainsService) List() ([]Domain, *Response, error) + func (s *DomainsService) ListRecords(domainID string, recordName string) ([]Record, *Response, error) + func (s *DomainsService) UpdateRecord(domain string, recordID string, recordAttributes Record) (Record, *Response, error) + type ErrorResponse struct + Message string + Response *http.Response + func (r *ErrorResponse) Error() string + type Record struct + Enabled string + ID string + Line string + LineID string + MX string + MonitorStatus string + Name string + Remark string + Status string + TTL string + Type string + UpdateOn string + UseAQB string + Value string + type Response struct + type Status struct + Code string + CreatedAt string + Message string