Versions in this module Expand all Collapse all v4 v4.15.1 Feb 17, 2024 Changes in this version + const StatusSuccess + func ParseError(resp *Response) error + type APIError struct + Code int + Message string + func (a *APIError) Error() string + type Billing struct + City string + CompanyRegID int + Country string + ID int + ISIC string + IsDefault bool + Name string + Profile string + Street string + TaxID int + VatID int + Zip string + type Client struct + HTTPClient *http.Client + func NewClient(apiKey, secretKey string) (*Client, error) + func (c *Client) AddRecord(ctx context.Context, domainName string, record Record) (*Response, error) + func (c *Client) DeleteRecord(ctx context.Context, domainName string, recordID int) (*Response, error) + func (c *Client) GetRecords(ctx context.Context, domainName string, recordID int) (*Record, error) + func (c *Client) GetUser(ctx context.Context, userID string) (*User, error) + func (c *Client) ListRecords(ctx context.Context, domainName string) (*ListResponse, error) + type Errors struct + Content []string + Name []string + func (e *Errors) Error() string + type ListResponse struct + Items []Record + Pager Pager + type Market struct + Currency string + Identifier string + Name string + type Pager struct + Items int + Page int + PageSize int + type Record struct + Content string + ID int + Name string + TTL int + Type string + Zone *Zone + type Response struct + Errors json.RawMessage + Item *Record + Status string + type User struct + Active bool + AwaitingTosConfirmation string + Billing []Billing + ContactPerson string + CreateTime int + Credit int + Email string + Group string + ID int + Login string + Market Market + ParentID int + Phone string + UserLanguage string + VerifyURL string + type Zone struct + ID int + Name string + UpdateTime int