Skip to content

Commit

Permalink
chore: release v0.5.0 (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
Duslia authored Jan 9, 2023
2 parents e78e75b + 280bf60 commit 95d427b
Show file tree
Hide file tree
Showing 93 changed files with 3,545 additions and 641 deletions.
3 changes: 3 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# For more information, please refer to https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

* @cloudwego/hertz-reviewers @cloudwego/hertz-approvers @cloudwego/hertz-maintainers
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Question
about: Ask a question, so we can help you easily
title: ''
labels: ''
assignees: ''

---

**Describe the Question**

A clear and concise description of what the question is.

**Reproducible Code**

Please construct a minimum complete and reproducible example for us to get the same error. And tell us how to reproduce it like how you send a request or send what request.

**Expected behavior**

A clear and concise description of what you expected to happen.

**Screenshots**

If applicable, add screenshots to help explain your question.

**Hertz version:**

Please provide the version of Hertz you are using.

**Environment:**

The output of `go env`.

**Additional context**

Add any other context about the question here.
28 changes: 28 additions & 0 deletions .github/labels.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"labels": {
"invalid_issue": {
"name": "invalid issue",
"colour": "#CF2E1F",
"description": "invalid issue (not related to Hertz or described in document or not enough information provided)"
}
},
"issue": {
"invalid_issue": {
"requires": 3,
"conditions": [
{
"type": "descriptionMatches",
"pattern": "/^((?!Describe the bug).)*$/is"
},
{
"type": "descriptionMatches",
"pattern": "/^((?!Is your feature request related to a problem\\? Please describe).)*$/is"
},
{
"type": "descriptionMatches",
"pattern": "/^((?!Describe the Question).)*$/is"
}
]
}
}
}
26 changes: 26 additions & 0 deletions .github/workflows/invalid_question.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "Close Invalid Issue"
on:
schedule:
- cron: "0 * * * *"

permissions:
contents: read

jobs:
stale:
permissions:
issues: write
runs-on: ubuntu-latest
env:
ACTIONS_STEP_DEBUG: true
steps:
- name: Close Stale Issues
uses: actions/stale@v6
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: "This issue has been marked as invalid question, please give more information by following the `issue` template. The issue will be closed in 3 days if no further activity occurs."
stale-issue-label: "stale"
days-before-stale: 0
days-before-close: 3
remove-stale-when-updated: true
only-labels: "invalid issue"
18 changes: 18 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Labeler"
on:
issues:
types: [ opened, edited, reopened ]

jobs:
triage:
if: contains(github.event.issue.labels.*.name, 'invalid issue') || join(github.event.issue.labels) == ''
runs-on: ubuntu-latest
name: Label issues
steps:
- name: check out
uses: actions/checkout@v3

- name: labeler
uses: jbinda/super-labeler-action@develop
with:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 1 addition & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.19

- uses: actions/cache@v3
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ on: [ push, pull_request ]

jobs:
lint-and-ut:
strategy:
matrix:
version: [ 1.18, 1.19 ]
runs-on: [ self-hosted, X64 ]
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: ${{ matrix.version }}

- uses: actions/cache@v3
with:
Expand Down
37 changes: 19 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,32 +60,33 @@ Hertz [həːts] is a high-usability, high-performance and high-extensibility Gol

| Extensions | Description |
|----------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Autotls](https://github.com/hertz-contrib/autotls) | Make Hertz support Let's Encrypt. |
| [Http2](https://github.com/hertz-contrib/http2) | HTTP2 support for Hertz. |
| [Websocket](https://github.com/hertz-contrib/websocket) | Enable Hertz to support the Websocket protocol. |
| [Pprof](https://github.com/hertz-contrib/pprof) | Extension for Hertz integration with Pprof. |
| [Sessions](https://github.com/hertz-contrib/sessions) | Session middleware with multi-state store support. |
| [Obs-opentelemetry](https://github.com/hertz-contrib/obs-opentelemetry) | Hertz's Opentelemetry extension that supports Metric, Logger, Tracing and works out of the box. |
| [Registry](https://github.com/hertz-contrib/registry) | Provides service registry and discovery functions. So far, the supported service discovery extensions are nacos, consul, etcd, eureka, polaris, servicecomb, zookeeper, redis. |
| [Keyauth](https://github.com/hertz-contrib/keyauth) | Provides token-based authentication. |
| [Secure](https://github.com/hertz-contrib/secure) | Secure middleware with multiple configuration items. |
| [Sentry](https://github.com/hertz-contrib/hertzsentry) | Sentry extension provides some unified interfaces to help users perform real-time error monitoring. |
| [Requestid](https://github.com/hertz-contrib/requestid) | Add request id in response. |
| [Limiter](https://github.com/hertz-contrib/limiter) | Provides a current limiter based on the bbr algorithm. |
| [Jwt](https://github.com/hertz-contrib/jwt) | Jwt extension. |
| [Autotls](https://github.com/hertz-contrib/autotls) | Make Hertz support Let's Encrypt. |
| [Monitor-prometheus](https://github.com/hertz-contrib/monitor-prometheus) | Provides service monitoring based on Prometheus. |
| [I18n](https://github.com/hertz-contrib/i18n) | Helps translate Hertz programs into multi programming languages. |
| [Reverseproxy](https://github.com/hertz-contrib/reverseproxy) | Implement a reverse proxy. |
| [Obs-opentelemetry](https://github.com/hertz-contrib/obs-opentelemetry) | Hertz's Opentelemetry extension that supports Metric, Logger, Tracing and works out of the box. |
| [Opensergo](https://github.com/hertz-contrib/opensergo) | The Opensergo extension. |
| [Gzip](https://github.com/hertz-contrib/gzip) | A Gzip extension with multiple options. |
| [Cors](https://github.com/hertz-contrib/cors) | Provides cross-domain resource sharing support. |
| [Swagger](https://github.com/hertz-contrib/swagger) | Automatically generate RESTful API documentation with Swagger 2.0. |
| [Pprof](https://github.com/hertz-contrib/pprof) | Extension for Hertz integration with Pprof. |
| [Registry](https://github.com/hertz-contrib/registry) | Provides service registry and discovery functions. So far, the supported service discovery extensions are nacos, consul, etcd, eureka, polaris, servicecomb, zookeeper, redis. |
| [Sentry](https://github.com/hertz-contrib/hertzsentry) | Sentry extension provides some unified interfaces to help users perform real-time error monitoring. |
| [Tracer](https://github.com/hertz-contrib/tracer) | Link tracing based on Opentracing. |
| [Recovery](https://github.com/cloudwego/hertz/tree/develop/pkg/app/middlewares/server/recovery) | Recovery middleware for Hertz. |
| [Basicauth](https://github.com/cloudwego/hertz/tree/develop/pkg/app/middlewares/server/basic_auth) | Basicauth middleware can provide HTTP basic authentication. |
| [Lark](https://github.com/hertz-contrib/lark-hertz) | Use hertz handle Lark/Feishu card message and event callback. |
| [Logger](https://github.com/hertz-contrib/logger) | Logger extension for Hertz, which provides support for zap, logrus, zerologs logging frameworks. |
| [Jwt](https://github.com/hertz-contrib/jwt) | Jwt extension. |
| [Keyauth](https://github.com/hertz-contrib/keyauth) | Provides token-based authentication. |
| [Requestid](https://github.com/hertz-contrib/requestid) | Add request id in response. |
| [Sessions](https://github.com/hertz-contrib/sessions) | Session middleware with multi-state store support. |
| [Cors](https://github.com/hertz-contrib/cors) | Provides cross-domain resource sharing support. |
| [Csrf](https://github.com/hertz-contrib/csrf) | Csrf middleware is used to prevent cross-site request forgery attacks. |
| [Secure](https://github.com/hertz-contrib/secure) | Secure middleware with multiple configuration items. |
| [Gzip](https://github.com/hertz-contrib/gzip) | A Gzip extension with multiple options. |
| [I18n](https://github.com/hertz-contrib/i18n) | Helps translate Hertz programs into multi programming languages. |
| [Lark](https://github.com/hertz-contrib/lark-hertz) | Use hertz handle Lark/Feishu card message and event callback. |
| [Loadbalance](https://github.com/hertz-contrib/loadbalance) | Provides load balancing algorithms for Hertz. |
| [Logger](https://github.com/hertz-contrib/logger) | Logger extension for Hertz, which provides support for zap, logrus, zerologs logging frameworks. |
| [Recovery](https://github.com/cloudwego/hertz/tree/develop/pkg/app/middlewares/server/recovery) | Recovery middleware for Hertz. |
| [Reverseproxy](https://github.com/hertz-contrib/reverseproxy) | Implement a reverse proxy. |
| [Swagger](https://github.com/hertz-contrib/swagger) | Automatically generate RESTful API documentation with Swagger 2.0. |

## Blogs
- [ByteDance Practice on Go Network Library](https://www.cloudwego.io/blog/2021/10/09/bytedance-practices-on-go-network-library/)
Expand Down
Loading

0 comments on commit 95d427b

Please sign in to comment.