Versions in this module Expand all Collapse all v4 v4.17.6 Jul 4, 2024 v4.17.5 Jul 4, 2024 v4.17.4 Jul 4, 2024 Changes in this version + type APIError struct + Code int + Message string + func (a APIError) Error() string + type APIRequest struct + Method string + Params any + type APIResponse struct + Error *APIError + ID string + RPC string + Result T + func (a APIResponse[T]) GetError() error + type Client struct + HTTPClient *http.Client + func NewClient(token string) *Client + func (c *Client) AddRecord(ctx context.Context, record Record) (*Record, error) + func (c *Client) ListRecords(ctx context.Context, domain string) ([]Record, error) + func (c *Client) RemoveRecord(ctx context.Context, id string, domain string) error + type Record struct + Content string + Domain string + ID string + Name string + TTL int + Type string + type Records struct + Records []Record + type Response interface + GetError func() error