Versions in this module Expand all Collapse all v4 v4.18.1 Sep 18, 2024 Changes in this version + func OAuthStaticAccessToken(client *http.Client, accessToken string) *http.Client + type APIError struct + ErrorCode string + ErrorMessage string + StatusCode int + func (a APIError) Error() string + type Client struct + func NewClient(hc *http.Client) *Client + func (c Client) CreateRecord(ctx context.Context, domainName string, record Record) (*Record, error) + func (c Client) DeleteRecord(ctx context.Context, domainName, recordID string) error + func (c Client) GetRecord(ctx context.Context, domainName, recordID string) (*Record, error) + func (c Client) GetRecords(ctx context.Context, domainName string) ([]Record, error) + type Content struct + Text string + type Record struct + Contents []Content + ID string + Name string + TTL int + Type string + type Response struct + Data D + Status string