Versions in this module Expand all Collapse all v4 v4.14.5 Dec 29, 2024 v4.14.4 Oct 15, 2023 v4.14.3 Oct 15, 2023 v4.8.2 Oct 15, 2023 Changes in this version + type APIResponse struct + Error int + Result T + Success bool + type Client struct + HTTPClient *http.Client + func NewClient(apiKey string) *Client + func (c Client) CreateRecord(ctx context.Context, zoneID string, record Record) (*Record, error) + func (c Client) DeleteRecord(ctx context.Context, zoneID string, recordID string) error + func (c Client) EditRecord(ctx context.Context, zoneID string, recordID string, record Record) (*Record, error) + func (c Client) GetRecord(ctx context.Context, zoneID string, recordID string) (*Record, error) + func (c Client) GetRecords(ctx context.Context, zoneID string, params *GetRecordsParameters) (*GetRecordsResponse, error) + func (c Client) GetZones(ctx context.Context) ([]Zone, error) + type GetRecordsParameters struct + Content string + DNSType string + type GetRecordsResponse struct + Count int + Data []Record + type Record struct + Advanced bool + Cloud bool + Content string + CustomSSLType string + Host string + ID string + Port int + Priority int + Protocol string + Service string + TTL int + Type string + UpstreamPort int + UpstreamProtocol string + Weight int + type Zone struct + BoardRole []string + ContextID string + ContextType string + CreationTime int64 + CreationTimeDate time.Time + HumanReadable string + ID string + IsBoard bool + IsMoved bool + Limbo bool + MyTeam bool + Paused bool + RoleName string + Serial string + ServiceType string + Status string + Tags []string + TeamID string + TeamName string