You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/PULL_REQUEST_TEMPLATE.md
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,10 @@
1
1
### Proposed changes
2
-
Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to that issue here in this description (not in the title of the PR).
2
+
3
+
Describe the use case and detail of the change. If this PR addresses an issue on GitHub, make sure to include a link to
4
+
that issue here in this description (not in the title of the PR).
3
5
4
6
### Checklist
7
+
5
8
Before creating a PR, run through this checklist and mark each as complete.
6
9
7
10
-[ ] I have read the [CONTRIBUTING](https://github.com/nginxinc/nginx-plus-go-client/blob/main/CONTRIBUTING.md) doc
An automatically generated list of changes can be found on GitHub at: [0.10.0 Release](https://github.com/nginxinc/nginx-plus-go-client/releases/tag/v0.10.0)
@@ -11,65 +13,102 @@ An automatically generated list of changes can be found on GitHub at: [0.9.0 Rel
11
13
An automatically generated list of changes can be found on GitHub at: [0.8.0 Release](https://github.com/nginxinc/nginx-plus-go-client/releases/tag/v0.8.0)
12
14
13
15
## 0.7.0 (Jul 10, 2020)
16
+
14
17
FEATURES:
15
-
*[38](https://github.com/nginxinc/nginx-plus-go-client/pull/38): *Support for /slabs API endpoint*. The client now supports retrieving shared memory zone usage info.
16
-
*[41](https://github.com/nginxinc/nginx-plus-go-client/pull/41): *Support for /processes API endpoint*. The client now supports retrieving processes info.
18
+
19
+
-[38](https://github.com/nginxinc/nginx-plus-go-client/pull/38): *Support for /slabs API endpoint*. The client now
20
+
supports retrieving shared memory zone usage info.
21
+
-[41](https://github.com/nginxinc/nginx-plus-go-client/pull/41): *Support for /processes API endpoint*. The client now
22
+
supports retrieving processes info.
17
23
18
24
CHANGES:
19
-
* The version of NGINX Plus for e2e testing was changed to R22.
20
-
* The version of Go was changed to 1.14
25
+
26
+
- The version of NGINX Plus for e2e testing was changed to R22.
27
+
- The version of Go was changed to 1.14
21
28
22
29
## 0.6.0 (Nov 8, 2019)
30
+
23
31
FEATURES:
24
-
*[34](https://github.com/nginxinc/nginx-plus-go-client/pull/34): *Support for updating upstream servers parameters*. The client now supports updating upstream parameters of servers that already exist in NGINX Plus.
32
+
33
+
-[34](https://github.com/nginxinc/nginx-plus-go-client/pull/34): *Support for updating upstream servers parameters*.
34
+
The client now supports updating upstream parameters of servers that already exist in NGINX Plus.
25
35
26
36
CHANGES:
27
-
* Public methods `UpdateHTTPServers` and `UpdateStreamServers` now return a third slice that includes the updated servers -- i.e. the servers that were already present in NGINX Plus but were updated with different parameters.
28
-
* Client will assume port `80` in addresses of updated servers of `UpdateHTTPServers` and `UpdateStreamServers` if port is not explicitly set.
29
-
* The version of Go was changed to 1.13
37
+
38
+
- Public methods `UpdateHTTPServers` and `UpdateStreamServers` now return a third slice that includes the updated
39
+
servers -- i.e. the servers that were already present in NGINX Plus but were updated with different parameters.
40
+
- Client will assume port `80` in addresses of updated servers of `UpdateHTTPServers` and `UpdateStreamServers` if port
41
+
is not explicitly set.
42
+
- The version of Go was changed to 1.13
30
43
31
44
## 0.5.0 (Sep 25, 2019)
45
+
32
46
FEATURES:
33
-
*[30](https://github.com/nginxinc/nginx-plus-go-client/pull/30): *Support additional upstream server parameters*.
34
-
The client now supports configuring `route`, `backup`, `down`, `drain`, `weight` and `service` parameters for http upstreams and `backup`, `down`, `weight` and `service` parameters for stream upstreams.
35
-
*[31](https://github.com/nginxinc/nginx-plus-go-client/pull/31): *Support location zones and resolver metrics*.
36
47
37
-
BUGFIXES:
38
-
*[29](https://github.com/nginxinc/nginx-plus-go-client/pull/29): *Fix max_fails parameter in upstream servers*. Previously, if the MaxFails field was not explicitly set, the client would incorrectly configure an upstream with the value `0` instead of the correct value `1`.
48
+
-[30](https://github.com/nginxinc/nginx-plus-go-client/pull/30): *Support additional upstream server parameters*. The
49
+
client now supports configuring `route`, `backup`, `down`, `drain`, `weight` and `service` parameters for http
50
+
upstreams and `backup`, `down`, `weight` and `service` parameters for stream upstreams.
51
+
-[31](https://github.com/nginxinc/nginx-plus-go-client/pull/31): *Support location zones and resolver metrics*.
52
+
53
+
FIXES:
54
+
55
+
-[29](https://github.com/nginxinc/nginx-plus-go-client/pull/29): *Fix max_fails parameter in upstream servers*.
56
+
Previously, if the MaxFails field was not explicitly set, the client would incorrectly configure an upstream with the
57
+
value `0` instead of the correct value `1`.
39
58
40
59
CHANGES:
41
-
* The version of NGINX Plus for e2e testing was changed to R19.
42
-
* The version of the API was changed to 5.
60
+
61
+
- The version of NGINX Plus for e2e testing was changed to R19.
62
+
- The version of the API was changed to 5.
43
63
44
64
## 0.4.0 (July 17, 2019)
65
+
45
66
FEATURES:
46
-
*[24](https://github.com/nginxinc/nginx-plus-go-client/pull/24): *Support `MaxConns` in upstream servers*.
47
67
48
-
BUGFIXES:
49
-
*[25](https://github.com/nginxinc/nginx-plus-go-client/pull/25): *Fix session metrics for stream server zones*. Session metrics with a status of `4xx` or `5xx` are now correctly reported. Previously they were always reported as `0`.
68
+
-[24](https://github.com/nginxinc/nginx-plus-go-client/pull/24): *Support `MaxConns` in upstream servers*.
69
+
70
+
FIXES:
71
+
72
+
-[25](https://github.com/nginxinc/nginx-plus-go-client/pull/25): *Fix session metrics for stream server zones*. Session
73
+
metrics with a status of `4xx` or `5xx` are now correctly reported. Previously they were always reported as `0`.
50
74
51
75
## 0.3.1 (June 10, 2019)
76
+
52
77
CHANGES:
53
-
*[22](https://github.com/nginxinc/nginx-plus-go-client/pull/22): *Change in stream zone sync metrics*. `StreamZoneSync` field of the `Stats` type is now a pointer. It will be nil if NGINX Plus doesn't report any zone sync stats.
78
+
79
+
-[22](https://github.com/nginxinc/nginx-plus-go-client/pull/22): *Change in stream zone sync metrics*. `StreamZoneSync`
80
+
field of the `Stats` type is now a pointer. It will be nil if NGINX Plus doesn't report any zone sync stats.
54
81
55
82
## 0.3 (May 29, 2019)
83
+
56
84
FEATURES:
57
-
*[20](https://github.com/nginxinc/nginx-plus-go-client/pull/20): *Support for stream zone sync metrics*. The client `GetStats` method now additionally returns stream zone sync metrics.
58
-
*[13](https://github.com/nginxinc/nginx-plus-go-client/pull/13): *Support for key-value endpoints*. The client implements a set of methods to create/modify/delete key-val pairs for both http and stream contexts.
59
-
*[12](https://github.com/nginxinc/nginx-plus-go-client/pull/12)*Support for NGINX status info*. The client `GetStats` method now additionally returns NGINX status metrics. Thanks to [jthurman42](https://github.com/jthurman42).
85
+
86
+
-[20](https://github.com/nginxinc/nginx-plus-go-client/pull/20): *Support for stream zone sync metrics*. The client
87
+
`GetStats` method now additionally returns stream zone sync metrics.
88
+
-[13](https://github.com/nginxinc/nginx-plus-go-client/pull/13): *Support for key-value endpoints*. The client
89
+
implements a set of methods to create/modify/delete key-val pairs for both http and stream contexts.
90
+
-[12](https://github.com/nginxinc/nginx-plus-go-client/pull/12)*Support for NGINX status info*. The client `GetStats`
91
+
method now additionally returns NGINX status metrics. Thanks to [jthurman42](https://github.com/jthurman42).
60
92
61
93
CHANGES:
62
-
* The repository was renamed to `nginx-plus-go-client` instead of `nginx-plus-go-sdk`. If the client is used as a dependency, this name needs to be changed in the import section (`import "github.com/nginxinc/nginx-plus-go-client/client"`).
63
-
* The version of the API was changed to 4.
64
-
* The version of NGINX Plus for e2e testing was changed to R18.
94
+
95
+
- The repository was renamed to `nginx-plus-go-client` instead of `nginx-plus-go-sdk`. If the client is used as a
96
+
dependency, this name needs to be changed in the import section (`import
- The version of NGINX Plus for e2e testing was changed to R18.
65
100
66
101
## 0.2 (Sep 7, 2018)
67
102
68
103
FEATURES:
69
-
*[7](https://github.com/nginxinc/nginx-plus-go-sdk/pull/7): *Support for stream server zone and stream upstream metrics*. The client `GetStats` method now additionally returns stream server zone and stream upstream metrics.
104
+
105
+
-[7](https://github.com/nginxinc/nginx-plus-go-sdk/pull/7): *Support for stream server zone and stream upstream
106
+
metrics*. The client `GetStats` method now additionally returns stream server zone and stream upstream metrics.
70
107
71
108
CHANGES:
72
-
* The version of NGINX Plus for e2e testing was changed to R16.
109
+
110
+
- The version of NGINX Plus for e2e testing was changed to R16.
The following is a set of guidelines for contributing to the NGINX Plus Go Client. We really appreciate that you are considering contributing!
3
+
The following is a set of guidelines for contributing to the NGINX Plus Go Client. We really appreciate that you are
4
+
considering contributing!
4
5
5
-
####Table Of Contents
6
+
## Table Of Contents
6
7
7
8
[Ask a Question](#ask-a-question)
8
9
@@ -11,8 +12,9 @@ The following is a set of guidelines for contributing to the NGINX Plus Go Clien
11
12
[Contributing](#contributing)
12
13
13
14
[Style Guides](#style-guides)
14
-
*[Git Style Guide](#git-style-guide)
15
-
*[Go Style Guide](#go-style-guide)
15
+
16
+
-[Git Style Guide](#git-style-guide)
17
+
-[Go Style Guide](#go-style-guide)
16
18
17
19
[Code of Conduct](CODE_OF_CONDUCT.md)
18
20
@@ -28,45 +30,54 @@ Please reserve GitHub issues for feature requests and bugs rather than general q
28
30
29
31
Read the usage and testing steps in the [README](README.md).
30
32
31
-
32
33
## Contributing
33
34
34
35
### Report a Bug
35
36
36
-
To report a bug, open an issue on GitHub with the label `bug` using the available bug report issue template. Please ensure the issue has not already been reported.
37
+
To report a bug, open an issue on GitHub with the label `bug` using the available bug report issue template. Please
38
+
ensure the issue has not already been reported.
37
39
38
40
### Suggest an Enhancement
39
41
40
-
To suggest an enhancement, please create an issue on GitHub with the label `enhancement` using the available feature issue template.
42
+
To suggest an enhancement, please create an issue on GitHub with the label `enhancement` using the available feature
43
+
issue template.
41
44
42
45
### Open a Pull Request
43
46
44
-
* Fork the repo, create a branch, submit a PR when your changes are tested and ready for review
45
-
* Fill in [our pull request template](.github/PULL_REQUEST_TEMPLATE.md)
47
+
- Fork the repo, create a branch, submit a PR when your changes are tested and ready for review
48
+
- Fill in [our pull request template](.github/PULL_REQUEST_TEMPLATE.md)
46
49
47
50
> **Note**
48
51
>
49
-
> If you’d like to implement a new feature, please consider creating a feature request issue first to start a discussion about the feature.
52
+
> If you’d like to implement a new feature, please consider creating a feature request issue first to start a discussion
53
+
> about the feature.
50
54
51
55
### Issue lifecycle
52
56
53
-
* When an issue or PR is created, it will be triaged by the core development team and assigned a label to indicate the type of issue it is (bug, feature request, etc) and to determine the milestone. Please see the [Issue Lifecycle](ISSUE_LIFECYCLE.md) document for more information.
57
+
- When an issue or PR is created, it will be triaged by the core development team and assigned a label to indicate the
58
+
type of issue it is (bug, feature request, etc) and to determine the milestone. Please see the [Issue
59
+
Lifecycle](ISSUE_LIFECYCLE.md) document for more information.
54
60
55
61
## Style Guides
56
62
57
63
### Git Style Guide
58
64
59
-
* Keep a clean, concise and meaningful git commit history on your branch, rebasing locally and squashing before submitting a PR
60
-
* Follow the guidelines of writing a good commit message as described here https://chris.beams.io/posts/git-commit/ and summarized in the next few points
61
-
* In the subject line, use the present tense ("Add feature" not "Added feature")
62
-
* In the subject line, use the imperative mood ("Move cursor to..." not "Moves cursor to...")
63
-
* Limit the subject line to 72 characters or less
64
-
* Reference issues and pull requests liberally after the subject line
65
-
* Add more detailed description in the body of the git message (`git commit -a` to give you more space and time in your text editor to write a good message instead of `git commit -am`)
65
+
- Keep a clean, concise and meaningful git commit history on your branch, rebasing locally and squashing before
66
+
submitting a PR
67
+
- Follow the guidelines of writing a good commit message as described here <https://chris.beams.io/posts/git-commit/>
68
+
and summarized in the next few points
69
+
- In the subject line, use the present tense ("Add feature" not "Added feature")
70
+
- In the subject line, use the imperative mood ("Move cursor to..." not "Moves cursor to...")
71
+
- Limit the subject line to 72 characters or less
72
+
- Reference issues and pull requests liberally after the subject line
73
+
- Add more detailed description in the body of the git message (`git commit -a` to give you more space and time in
74
+
your text editor to write a good message instead of `git commit -am`)
66
75
67
76
### Go Style Guide
68
77
69
-
* Run `gofmt` over your code to automatically resolve a lot of style issues. Most editors support this running automatically when saving a code file.
70
-
* Run `go lint` and `go vet` on your code too to catch any other issues.
71
-
* Follow this guide on some good practice and idioms for Go - https://github.com/golang/go/wiki/CodeReviewComments
72
-
* To check for extra issues, install [golangci-lint](https://github.com/golangci/golangci-lint) and run `make lint` or `golangci-lint run`
78
+
- Run `gofmt` over your code to automatically resolve a lot of style issues. Most editors support this running
79
+
automatically when saving a code file.
80
+
- Run `go lint` and `go vet` on your code too to catch any other issues.
81
+
- Follow this guide on some good practice and idioms for Go - <https://github.com/golang/go/wiki/CodeReviewComments>
82
+
- To check for extra issues, install [golangci-lint](https://github.com/golangci/golangci-lint) and run `make lint` or
0 commit comments