Skip to content

Commit 859e1d1

Browse files
feat(centralnic-reseller-go-sdk): Introducing CentralNic Reseller Go-SDK API Connector
BREAKING CHANGE: This release deprecates the Hexonet Go SDK and introduces the CentralNic Reseller Go SDK. - Note: To continue using the Hexonet SDK, please install version 4.0.0 or earlier.
1 parent f6b96a0 commit 859e1d1

File tree

23 files changed

+591
-617
lines changed

23 files changed

+591
-617
lines changed

.golangci.yml renamed to .github/linters/.golangci.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
#########################
66
#########################
77

8-
# https://raw.githubusercontent.com/super-linter/super-linter/main/.github/linters/.golangci.yml
9-
8+
# configure golangci-lint
9+
# see https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml
1010
issues:
1111
exclude-rules:
1212
- path: _test\.go
@@ -22,13 +22,20 @@ linters:
2222
- goconst
2323
- goimports
2424
- gocritic
25+
- govet
2526
- revive
26-
- shadow # Added shadow linter
2727
linters-settings:
2828
errcheck:
29-
# report about assignment of errors to blank identifier
29+
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
3030
# default is false: such cases aren't reported by default.
3131
check-blank: true
32+
govet:
33+
enable:
34+
# report about shadowed variables
35+
- shadowing
3236
gocyclo:
3337
# minimal code complexity to report, 30 by default
34-
min-complexity: 15
38+
min-complexity: 20
39+
maligned:
40+
# print struct with more effective memory layout or not, false by default
41+
suggest-new: true

README.md

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,41 @@
77
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
88
[![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/centralnicgroup-opensource/rtldev-middleware-go-sdk/blob/master/CONTRIBUTING.md)
99

10-
This module is a connector library for the insanely fast HEXONET Backend API. For further informations visit our [homepage](http://hexonet.net) and do not hesitate to [contact us](https://www.hexonet.net/contact).
10+
This module is a connector library for the insanely fast CentralNic Reseller Backend API. For further informations visit our [homepage](https://www.centralnicreseller.com) and do not hesitate to [contact us](https://www.centralnicreseller.com/contact).
11+
12+
## Deprecation Notice: Hexonet Go SDK
13+
14+
This SDK succeeds the deprecated Hexonet Go SDK. It is an enhanced version that builds upon the foundation laid by the Hexonet SDK, offering improved features and performance. Hexonet is migrating to CentralNic Reseller, ensuring continued support and development under the new branding.
1115

1216
## Resources
1317

14-
- Documentation:
15-
- [HEXONET](https://www.hexonet.support/hc/en-gb/articles/13651860201117-Self-Development-Kit-for-Go-Golang)
16-
- [Release Notes](https://github.com/centralnicgroup-opensource/rtldev-middleware-go-sdk/releases)
18+
- [Documentation](https://support.centralnicreseller.com/hc/en-gb/articles/5714403954333-Self-Development-Kit-for-Go-Golang)
19+
20+
## Release Notes
21+
22+
For detailed release notes, please visit the [Release Notes](https://github.com/centralnicgroup-opensource/rtldev-middleware-go-sdk/releases) page.
23+
24+
## Running the Demo Application
25+
26+
To run the demo application, follow these steps:
27+
28+
1. **Set Your Credentials**: Ensure your credentials are available. You can either:
29+
- Replace them directly in the application file.
30+
- Set the environment variables `CNR_TEST_USER` and `CNR_TEST_PASSWORD` in your terminal.
31+
32+
2. **Execute the Demo**: Once your credentials are set, run the following command in the terminal:
33+
34+
```sh
35+
npm run test-demo
36+
```
37+
38+
3. **Update Demo Contents**: If you need to update the contents of the demo file, you can find it at:
39+
40+
```plaintext
41+
demo/demo.go
42+
```
43+
44+
By following these steps, you can successfully run and update the demo application.
1745

1846
## Authors
1947

apiclient.go

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)