Versions in this module Expand all Collapse all v4 v4.15.1 Feb 17, 2024 Changes in this version + const ModeAnycast + const ModeZone + type APIError struct + Message string + StatusCode int + func (a APIError) Error() string + type Client struct + HTTPClient *http.Client + func NewClient(opts Options) *Client + func (c Client) AddRecord(ctx context.Context, zone string, payload RecordCreateUpdate) error + func (c Client) DeleteRecord(ctx context.Context, zone string, record int) error + func (c Client) GetZone(ctx context.Context, name string) (*Zone, error) + type Options struct + Email string + Login string + Mode string + OTP string + Password string + Username string + type Record struct + Content string + ID int + Name string + TTL int + Type string + type RecordCreateUpdate struct + Name string + TTL int + Type string + Value string + type Zone struct + Active bool + Name string + Records []Record