Skip to content

Releases: ThCompiler/go.beget.api

Release v0.1.1 Backup and User

09 Mar 20:51

Choose a tag to compare

English

Changed

Library

Api

  • Added getting the url.Values as a parameter of the callMethod method of the BasicMethod structure
    in the api package. And, accordingly, it is now possible to add query parameters to the API method information.

Added

Library

Core

  • Added method PrepareRequestWithClient in the core package to specify users http.Client` for requests to API.
  • Added test mod for working api system.

Api

  • Added test package to api package with tests of API methods.
  • Added methods of account management in the
    api/user package.
  • Added methods of backup management in the
    api/backup package.

Pkg

Russian

Изменено

Библиотека

Api

  • Добавлено получение url.Values в качестве параметра метода CallMethod структуры BasicMethod в пакете api.
    И, соответственно, появилась возможность добавлять в информацию о методе API параметры запроса.

Добавлено

Библиотека

Ядро

  • Добавлен метод PrepareRequestWithClient в пакете core, позволяющий указывать пользовательский
    http.Client для запросов к API.
  • Добавлено тестовое состояние для работы API.

Api

Pkg

Release v0.0.2. Documentation.

23 Feb 23:02
5ba9a42

Choose a tag to compare

English

Fixed

Library

Core

  • Fixed return nil error from method Get for BegetResponse and Answer.

Repository

  • Fixed the path to documentation in README.
  • Fixed the path to get a package via the go get command in the README.

Changed

Library

Core

  • Renamed methods GetResult and MustGetResult of BegetResponse to GetAnswer and MustGetAnswer.
  • The package structure has been redesigned.

Api

  • Made exportable settableRecords interface in the api/dns package.
  • Changed type of records field in CallChangeRecords method to SettableRecords in the api/dns package.
  • Deleted unnecessary SetRecords, SetBasicRecords, SetNsRecords, SetCNameRecords functions in the api/dns package.
  • Deleted unnecessary SettingRecords type in the api/dns package.
  • Renamed NewARecordCreator method in api/dns/build package to NewARecords.
  • Renamed NewAAAARecordCreator method in api/dns/build package to NewAAAARecords.
  • Renamed NewMxRecordCreator method in api/dns/build package to NewMxRecords.
  • Renamed NewTxtRecordCreator method in api/dns/build package to NewTxtRecords.
  • Renamed NewNsRecordCreator method in api/dns/build package to `NewNsRecords*.
  • Renamed NewCNameRecordCreator method in api/dns/build package to NewCNameRecords.
  • Renamed NewDNSIPRecordCreator method in api/dns/build package to NewDNSIPRecords.
  • Renamed NewDNSRecordCreator method in api/dns/build package to NewDNSRecords.
  • The embedding of the DNSRecordsCreator type in BasicRecordsCreator, NsRecordsCreator, CNameRecordsCreator
    has been changed to store the dnsRecords field
    with the DNSRecordsCreator type in the api/dns/build package.

Added

Library

Core

  • Added golang documentation.

Api

Russian

Исправлено

Библиотека

Ядро

  • Исправлено возвращение значения nil для ошибки из метода Get у BegetResponse и Answer.

Репозиторий

  • Исправлен путь к документации в README.
  • Исправлено путь получения пакета через команду go get в README.

Изменено

Библиотека

Ядро

  • Переименованы методы GetResult и MustGetResult типа BegetResponse на GetAnswer и MustGetAnswer, соответственно.
  • Переработана структура пакетов.

Api

  • Сделан экспортируемым интерфейс settableRecords в пакете api/dns.
  • Изменены тип поля records в методе CallChangeRecords на SettableRecords в пакете api/dns.
  • Удалены ненужные функции SetRecords, SetBasicRecords, SetNsRecords, SetCNameRecords в пакете api/dns.
  • Удалены ненужный тип SettingRecords в пакете api/dns.
  • Переименован метод NewARecordCreator из пакета api/dns/build на NewARecords.
  • Переименован метод NewAAAARecordCreator из пакета api/dns/build на NewAAAARecords.
  • Переименован метод NewMxRecordCreator из пакета api/dns/build на NewMxRecords.
  • Переименован метод NewTxtRecordCreator из пакета api/dns/build на NewTxtRecords.
  • Переименован метод NewNsRecordCreator из пакета api/dns/build на NewNsRecords.
  • Переименован метод NewCNameRecordCreator из пакета api/dns/build на NewCNameRecords.
  • Переименован метод NewDNSIPRecordCreator из пакета api/dns/build на NewDNSIPRecords.
  • Переименован метод NewDNSRecordCreator из пакета api/dns/build на NewDNSRecords.
  • Изменено встраивание типа DNSRecordsCreator в BasicRecordsCreator, NsRecordsCreator, CNameRecordsCreator
    на хранение поля dnsRecords с типом DNSRecordsCreator в пакетe api/dns/build.

Добавлено

Библиотека

Ядро

  • Добавлена документация Golang.

Api

Release v0.0.1

08 Feb 21:16
e68e255

Choose a tag to compare

English

Added

Library

Core

  • Added error types, formats and statuses (core/info section).
  • The structure of the response description from the api service has been added.
  • Added generalized execution of api requests and getting results.
  • Added the ApiMethod interface describing the requirements for the api method.

Api

  • Added a basic method describing the api request.
  • Added methods for interacting with DNS: getData, changeRecords.
  • Implemented a record creator for requesting dns record changes via the changeRecords method.

Repository

  • Added a description of the README in Russian and English.
  • CI operation is configured.
  • Added an example of using the library in another repository.

Russian

Добавлено

Библиотека

Ядро

  • Добавлены типы ошибок, форматы и статусы (раздел core/info).
  • Добавлена структура описание ответа от сервисом api.
  • Добавлено обобщённое выполнения запросов по api и получение результатов.
  • Добавлен интерфейс ApiMethod описывающий требования к методом api.

Api

  • Добавлен базовый метод описывающий запрос по api.
  • Добавлены методы взаимодействия с DNS: getData, changeRecords.
  • Реализован создатель записей для запроса на изменение dns записей через метод changeRecords.

Репозиторий

  • Добавлено описание README на русском и английском языке.
  • Настроена работа CI.
  • Добавлен пример применения библиотеки в другом репозитории.