Versions in this module Expand all Collapse all v4 v4.18.1 Sep 18, 2024 Changes in this version + func TTLRounder(ttl int) int + type Base struct + Code int + Message string + func (b Base) Error() string + type Client struct + HTTPClient *http.Client + func NewClient(username string, token string) *Client + func (c Client) CreateRecord(ctx context.Context, domainID int, record Record) (int, error) + func (c Client) DeleteRecord(ctx context.Context, domainID int, recordID int) error + func (c Client) GetDomainDetails(ctx context.Context, domainID int) (*DomainDetails, error) + func (c Client) GetServiceDetails(ctx context.Context, serviceID int) (*ServiceDetails, error) + func (c Client) ListServices(ctx context.Context) ([]int, error) + type DomainDetails struct + DomainName string + DomainNameASCII string + ID int + type IntOrString int + func (m *IntOrString) UnmarshalJSON(data []byte) error + func (m *IntOrString) Value() int + type Record struct + Destination string + Host string + ID IntOrString + TTL int + Type string + type Response struct + Data T + type ServiceDetails struct + DomainID int + ID int + Name string