Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add more example #775

Merged
merged 1 commit into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions content/en/docs/hertz/tutorials/example/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,15 @@ Hertz provides a series of code examples designed to help users get start with H
- [hello](https://github.com/cloudwego/hertz-examples/tree/main/hello) :Example of launching a hertz "hello world" application

### Config
- [config](https://github.com/cloudwego/hertz-examples/tree/main/config) :Example of configuring hertz server
- [config](https://github.com/cloudwego/hertz-examples/tree/main/config) :Example of configuring hertz server

### Protocol
- [Protocol](https://github.com/cloudwego/hertz-examples/tree/main/protocol) :Example of hertz using protocols such as HTTP1, TLS, etc
- [HTTP1](https://github.com/cloudwego/hertz-examples/tree/main/protocol/http1) : Example of hertz using HTTP1 protocol
- [TLS](https://github.com/cloudwego/hertz-examples/tree/main/protocol/tls) : Example of hertz using TLS protocol
- [HTTP2](https://github.com/hertz-contrib/http2/tree/main/examples) : Example of hertz using HTTP2 protocol
- [HTTP3](https://github.com/hertz-contrib/http3/tree/main/examples/quic-go) : Example of hertz using HTTP3 protocol
- [Websocket](https://github.com/hertz-contrib/websocket/tree/main/examples) : Example of hertz using Websocket protocol
- [SSE](https://github.com/hertz-contrib/sse/tree/main/examples) : Example of hertz using SSE protocol

### Route
- [Route](https://github.com/cloudwego/hertz-examples/tree/main/route) :Examples of registering routes, using route groups, and parameter routes
Expand All @@ -54,6 +59,19 @@ Hertz provides a series of code examples designed to help users get start with H
- [gzip](https://github.com/cloudwego/hertz-examples/tree/main/middleware/gzip) :Example of using gzip middleware in hertz server
- [csrf](https://github.com/cloudwego/hertz-examples/tree/main/middleware/csrf) :Example of using csrf middleware in hertz server
- [loadbalance](https://github.com/cloudwego/hertz-examples/tree/main/middleware/loadbalance/round_robin) :Example of using loadbalance middleware in hertz server
- [Recovery](/zh/docs/hertz/tutorials/basic-feature/middleware/recovery/) :Example of using Recovery middleware
- [jwt]([/zh/docs/hertz/tutorials/basic-feature/middleware/recovery/](https://github.com/hertz-contrib/jwt/tree/main/example/basic)) :Example of using jwt middleware
- [i18n](https://github.com/hertz-contrib/i18n/tree/main/example) :Example of using i18n middleware
- [session](https://github.com/hertz-contrib/sessions/tree/main/_example) :Example of using session middleware
- [KeyAuth](https://github.com/hertz-contrib/keyauth/tree/main/example) :Example of using KeyAuth middleware
- [Swagger](https://github.com/swaggo/gin-swagger/tree/master/example) :Example of using Swagger middleware
- [access log](https://github.com/hertz-contrib/logger/tree/main/accesslog/example) :Example of using access log middleware
- [Secure](https://github.com/hertz-contrib/secure/tree/main/example/custom) :Example of using Secure middleware
- [Sentry](https://github.com/hertz-contrib/hertzsentry) :Example of using Sentry middleware
- [Casbin](https://github.com/hertz-contrib/casbin/tree/main/example) :Example of using Casbin middleware
- [ETag](https://github.com/hertz-contrib/etag/tree/main/example) :Example of using ETag middleware
- [Cache](https://github.com/hertz-contrib/cache/tree/main/example) :Example of using Cache middleware
- [Paseto](https://github.com/hertz-contrib/paseto/tree/main/example) :Example of using Paseto middleware

### Parameter binding and validation
- [binding](https://github.com/cloudwego/hertz-examples/tree/main/binding) :Example of parameter binding and validation
Expand Down
20 changes: 19 additions & 1 deletion content/zh/docs/hertz/tutorials/example/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ Hertz 提供了一系列示例代码旨在帮助用户快速上手 Hertz 并了
- [config](https://github.com/cloudwego/hertz-examples/tree/main/config) :配置 hertz server 的示例

### 协议
- [Protocol](https://github.com/cloudwego/hertz-examples/tree/main/protocol) :hertz 使用 HTTP1、TLS 等协议的示例
- [HTTP1](https://github.com/cloudwego/hertz-examples/tree/main/protocol/http1) : hertz 使用 HTTP1 协议的示例
- [TLS](https://github.com/cloudwego/hertz-examples/tree/main/protocol/tls) : hertz 使用 TLS 协议的示例
- [HTTP2](https://github.com/hertz-contrib/http2/tree/main/examples) : hertz 使用 HTTP2 协议的示例
- [HTTP3](https://github.com/hertz-contrib/http3/tree/main/examples/quic-go) : hertz 使用 HTTP3 协议的示例
- [Websocket](https://github.com/hertz-contrib/websocket/tree/main/examples) : hertz 使用 Websocket 协议的示例
- [SSE](https://github.com/hertz-contrib/sse/tree/main/examples) : hertz 使用 SSE 协议的示例

### 路由
- [Route](https://github.com/cloudwego/hertz-examples/tree/main/route) :注册路由、使用路由组、参数路由的示例
Expand All @@ -54,6 +59,19 @@ Hertz 提供了一系列示例代码旨在帮助用户快速上手 Hertz 并了
- [gzip](https://github.com/cloudwego/hertz-examples/tree/main/middleware/gzip) :在 hertz server 中使用 gzip 中间件的示例
- [csrf](https://github.com/cloudwego/hertz-examples/tree/main/middleware/csrf) :在 hertz server 中使用 csrf 中间件的示例
- [loadbalance](https://github.com/cloudwego/hertz-examples/tree/main/middleware/loadbalance/round_robin) :在 hertz server 中使用 loadbalance 中间件的示例
- [Recovery](/zh/docs/hertz/tutorials/basic-feature/middleware/recovery/) :使用 Recovery 中间件的示例
- [jwt]([/zh/docs/hertz/tutorials/basic-feature/middleware/recovery/](https://github.com/hertz-contrib/jwt/tree/main/example/basic)) :使用 jwt 中间件的示例
- [i18n](https://github.com/hertz-contrib/i18n/tree/main/example) :使用 i18n 中间件的示例
- [session](https://github.com/hertz-contrib/sessions/tree/main/_example) :使用 session 中间件的示例
- [KeyAuth](https://github.com/hertz-contrib/keyauth/tree/main/example) :使用 KeyAuth 中间件的示例
- [Swagger](https://github.com/swaggo/gin-swagger/tree/master/example) :使用 Swagger 中间件的示例
- [access log](https://github.com/hertz-contrib/logger/tree/main/accesslog/example) :使用 access log 中间件的示例
- [Secure](https://github.com/hertz-contrib/secure/tree/main/example/custom) :使用 Secure 中间件的示例
- [Sentry](https://github.com/hertz-contrib/hertzsentry) :使用 Sentry 中间件的示例
- [Casbin](https://github.com/hertz-contrib/casbin/tree/main/example) :使用 Casbin 中间件的示例
- [ETag](https://github.com/hertz-contrib/etag/tree/main/example) :使用 ETag 中间件的示例
- [Cache](https://github.com/hertz-contrib/cache/tree/main/example) :使用 Cache 中间件的示例
- [Paseto](https://github.com/hertz-contrib/paseto/tree/main/example) :使用 Paseto 中间件的示例

### 参数绑定及验证
- [binding](https://github.com/cloudwego/hertz-examples/tree/main/binding) :参数绑定及验证的示例
Expand Down
Loading