Versions in this module Expand all Collapse all v4 v4.16.1 Mar 10, 2024 v4.16.0 Mar 9, 2024 v4.15.0 Jan 28, 2024 v4.14.2 Sep 19, 2023 v4.14.1 Sep 19, 2023 v4.14.0 Aug 21, 2023 v4.13.3 Jul 25, 2023 v4.13.2 Jul 21, 2023 v4.13.1 Jul 20, 2023 v4.13.0 Jul 20, 2023 v4.12.3 Jun 19, 2023 v4.12.2 Jun 19, 2023 v4.12.1 Jun 6, 2023 v4.12.0 May 28, 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