Versions in this module Expand all Collapse all v4 v4.18.1 Sep 18, 2024 Changes in this version + type APIError struct + Code int32 + Details []Detail + Message string + func (a APIError) Error() string + type Client struct + HTTPClient *http.Client + func NewClient(oauthToken string, orgID int64) (*Client, error) + func (c Client) AddRecord(ctx context.Context, domain string, record Record) (*Record, error) + func (c Client) DeleteRecord(ctx context.Context, domain string, recordID int64) error + type Detail struct + Type string + func (d Detail) String() string + type Record struct + Address string + Exchange string + Flag int64 + ID int64 + Name string + Port int64 + Preference int64 + Priority int64 + TTL int + Tag string + Target string + Text string + Type string + Value string + Weight int64