Versions in this module Expand all Collapse all v4 v4.18.1 Sep 18, 2024 Changes in this version + const DefaultSelectelBaseURL + const DefaultVScaleBaseURL + type APIError struct + Code int + Description string + Field string + func (a APIError) Error() string + type Client struct + BaseURL *url.URL + HTTPClient *http.Client + func NewClient(token string) *Client + func (c *Client) AddRecord(ctx context.Context, domainID int, body Record) (*Record, error) + func (c *Client) DeleteRecord(ctx context.Context, domainID, recordID int) error + func (c *Client) GetDomainByName(ctx context.Context, domainName string) (*Domain, error) + func (c *Client) ListRecords(ctx context.Context, domainID int) ([]Record, error) + type Domain struct + ID int + Name string + type Record struct + Content string + Email string + ID int + Name string + TTL int + Type string