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 + const Contains + const EndsWith + const Exact + const StartsWith + type APIError struct + Errors []string + StatusCode int + func (a APIError) Error() string + type BadRequest struct + func (e *BadRequest) Unwrap() error + type Client struct + BaseURL string + Domains *DomainService + HTTPClient *http.Client + TxtRecords *TxtRecordService + func NewClient(httpClient *http.Client) *Client + type Domain struct + ID int64 + Name string + Status string + TypeID int64 + Version int64 + type DomainService service + func (s *DomainService) GetAll(ctx context.Context, params *PaginationParameters) ([]Domain, error) + func (s *DomainService) GetByName(ctx context.Context, domainName string) (Domain, error) + func (s *DomainService) Search(ctx context.Context, filter searchFilter, value string) ([]Domain, error) + type NotFound struct + func (e *NotFound) Unwrap() error + type PaginationParameters struct + Max int + Offset int + Order string + Sort string + type Record struct + GtdRegion int + ID int64 + ModifiedTS int64 + Name string + NoAnswer bool + Note string + Parent string + ParentID int + RecordOption string + RecordType string + RoundRobin []RecordValue + Source string + TTL int + Type string + Value []RecordValue + type RecordRequest struct + Name string + RoundRobin []RecordValue + TTL int + type RecordValue struct + DisableFlag bool + Value string + type SuccessMessage struct + Success string + type TokenTransport struct + Transport http.RoundTripper + func NewTokenTransport(apiKey, secretKey string) (*TokenTransport, error) + func (t *TokenTransport) Client() *http.Client + func (t *TokenTransport) RoundTrip(req *http.Request) (*http.Response, error) + func (t *TokenTransport) Wrap(client *http.Client) *http.Client + type TxtRecordService service + func (s *TxtRecordService) Create(ctx context.Context, domainID int64, record RecordRequest) ([]Record, error) + func (s *TxtRecordService) Delete(ctx context.Context, domainID, recordID int64) (*SuccessMessage, error) + func (s *TxtRecordService) Get(ctx context.Context, domainID, recordID int64) (*Record, error) + func (s *TxtRecordService) GetAll(ctx context.Context, domainID int64) ([]Record, error) + func (s *TxtRecordService) Search(ctx context.Context, domainID int64, filter searchFilter, value string) ([]Record, error) + func (s *TxtRecordService) Update(ctx context.Context, domainID, recordID int64, record RecordRequest) (*SuccessMessage, error)