Versions in this module Expand all Collapse all v1 v1.0.0 Oct 1, 2023 Changes in this version + const ErrTemplate + const TXTDataKey + const TXTKey + func PopTXTRecordByValue(r Records, txtData string) int + func PushTXTRecord(r Records, txtData string) error + type ApiClient struct + func NewApiClient(apiURL *url.URL) *ApiClient + func (a *ApiClient) ChangeRecords(fqdn string, records Records, credentials Credentials) error + func (a *ApiClient) GetData(fqdn string, credentials Credentials) (Records, error) + type BegetApiMock struct + func NewBegetApiMock(login string, passwd string) *BegetApiMock + func (b *BegetApiMock) DnsChangeRecords(w http.ResponseWriter, req *http.Request) + func (b *BegetApiMock) DnsGetData(w http.ResponseWriter, req *http.Request) + func (b *BegetApiMock) Run(addr string) error + func (b *BegetApiMock) RunDns(port string) + func (b *BegetApiMock) Stop(ctx context.Context) error + func (b *BegetApiMock) StopDns(_ context.Context) error + type ChangeRecordsRequest struct + FQDN string + Records Records + type ChangeRecordsResponse struct + Answer struct{ ... } + Status string + type Credentials struct + Login string + Passwd string + type GetDataRequest struct + FQDN string + type GetDataResponse struct + Answer struct{ ... } + Status string + type GetDataResult struct + FQDN string + Records Records + type Records map[string][]map[string]interface