Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dapeng committed Jun 19, 2024
1 parent 45cd26e commit 3d2ed91
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ module.exports = {
text: '配置定时任务',
link: '/zh/guide/schedule.md',
}, {
text: '使用gRPC',
text: '使用gRPC通信',
link: '/zh/guide/grpc.md',
}],
}, {
Expand Down
2 changes: 1 addition & 1 deletion docs/zh/goners/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ next: ../
|redis|封装`github.com/gomodule/redigo/redis`,用于操作redis,提供redis缓存和redis分布式锁的功能|[利用redis提供分布式锁和分布式缓存](../guide/redis.md)|
|schedule|封装`github.com/robfig/cron/v3`,提供定时任务的能力|[用cron表达式配置定时任务](https://goner.fun/zh/guide/schedule.html)|
|urllib|封装`github.com/imroc/req/v3`,提供http调用能力|-|
|grpc|提供开发grpc服务端和客户端的能力|[使用gRPC](https://goner.fun/zh/guide/grpc.html)|
|grpc|提供开发grpc服务端和客户端的能力|[使用gRPC通信](https://goner.fun/zh/guide/grpc.html)|
|cmux|封装`github.com/soheilhy/cmux`,是统一端口可以提供混合服务的能力|-|
|zap|封装`go.uber.org/zap`,实现`gone.Logger`日志接口,可以替换`logrus`实现更高效的日志输出|-|
|viper|封装`github.com/spf13/viper`,用于替换配置接口默认实现,可以支持丰富的配置文件格式|-|
Expand Down
4 changes: 2 additions & 2 deletions docs/zh/guide/grpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ prev: ./schedule
next: ./auto-gen-priest
---

# 使用gRPC
# 使用gRPC通信
首先创建一个grpc目录,在这个目录中初始化一个golang mod:
```bash
mkdir grpc
Expand Down Expand Up @@ -205,4 +205,4 @@ go run client/main.go
3. 将 客户端Goner 注册到 Gone框架
4. 启动客户端,调用客服端接口方法

本文的代码开源在 [Gone-io/grpc](https://github.com/gone-io/gone/tree/main/example/grpc)
本文的代码开源在 [goner/grpc](https://github.com/gone-io/gone/tree/main/example/grpc)

0 comments on commit 3d2ed91

Please sign in to comment.