Tags: ThCompiler/go.beget.api
Tags
Release v0.0.2, Documentation ## 0.0.1 ## 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. ## 0.0.2 ## 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 * Added golang documentation.