|
1 | | -# due 一站式分布式游戏服务器解决方案 |
| 1 | +# due 基于Go语言开发的高性能分布式游戏服务器框架 |
2 | 2 |
|
3 | 3 | [](https://github.com/dobyte/due/actions) |
4 | 4 | [](https://goproxy.cn/stats/github.com/dobyte/due/badges/download-count.svg) |
|
10 | 10 |
|
11 | 11 | ### 1.介绍 |
12 | 12 |
|
13 | | -due是一款基于Go语言开发的轻量级分布式游戏服务器框架。 |
| 13 | +due是一款基于Go语言开发的轻量级、高性能分布式游戏服务器框架。 |
14 | 14 | 其中,模块设计方面借鉴了[kratos](https://github.com/go-kratos/kratos)的模块设计思路,旨在为游戏服务器开发提供完善、高效、标准化的解决方案。 |
| 15 | +框架自创建至今已在多个企业级游戏项目中上线实践过,稳定性有充分的保障。 |
15 | 16 |
|
16 | 17 |  |
17 | 18 |
|
@@ -372,7 +373,7 @@ func greetHandler(ctx node.Context) { |
372 | 373 | log.Info(req.Message) |
373 | 374 |
|
374 | 375 | res.Code = codes.OK.Code() |
375 | | - res.Message = fmt.Sprintf("I'm server, and the current time is: %s", xtime.Now().Format(xtime.DatetimeLayout)) |
| 376 | + res.Message = fmt.Sprintf("I'm server, and the current time is: %s", xtime.Now().Format(xtime.DateTime)) |
376 | 377 | } |
377 | 378 | ``` |
378 | 379 |
|
@@ -489,7 +490,7 @@ func doPushMessage(conn *client.Conn) { |
489 | 490 | err := conn.Push(&cluster.Message{ |
490 | 491 | Route: 1, |
491 | 492 | Data: &greetReq{ |
492 | | - Message: fmt.Sprintf("I'm client, and the current time is: %s", xtime.Now().Format(xtime.DatetimeLayout)), |
| 493 | + Message: fmt.Sprintf("I'm client, and the current time is: %s", xtime.Now().Format(xtime.DateTime)), |
493 | 494 | }, |
494 | 495 | }) |
495 | 496 | if err != nil { |
@@ -667,16 +668,30 @@ throughput (TPS) : 128969 |
667 | 668 | 9. 缓存组件 |
668 | 669 | * redis: github.com/dobyte/due/cache/redis/v2 |
669 | 670 |
|
670 | | -### 14.详细示例 |
671 | | - |
672 | | -更多详细示例请点击[due-examples](https://github.com/dobyte/due-examples) |
673 | | - |
674 | | -### 15.其他客户端 |
| 671 | +### 14.其他客户端 |
675 | 672 |
|
676 | 673 | * [due-client-ts](https://github.com/dobyte/due-client-ts) |
677 | 674 | * [due-client-shape](https://github.com/dobyte/due-client-shape) |
678 | 675 |
|
679 | | -### 16.交流与讨论 |
| 676 | +### 15.详细示例 |
| 677 | + |
| 678 | +- [due-examples](https://github.com/dobyte/due-examples) |
| 679 | +- [due-chat](https://github.com/dobyte/due-chat) |
| 680 | + |
| 681 | +### 16.三方示例 |
| 682 | + |
| 683 | +<ul> |
| 684 | + <li style="line-height:30px;padding: 5px 0;"> |
| 685 | + <a style="line-height: 30px;float: left;" href="https://github.com/Zekiee"><img alt="Zekiee" src="https://avatars.githubusercontent.com/u/69623693?v=4" style="width:30px;height:30px;display:block;border-radius:50%;"></a> |
| 686 | + <a style="line-height: 30px;float: left;margin-left: 10px;" href="https://github.com/Zekiee/due-game-example">due-game-example</a> |
| 687 | + </li> |
| 688 | + <li style="line-height:30px;padding: 5px 0;"> |
| 689 | + <a style="line-height: 30px;float: left;" href="https://github.com/lingfan"><img alt="lingfan" src="https://avatars.githubusercontent.com/u/455872?v=4" style="width:30px;height:30px;display:block;border-radius:50%;"></a> |
| 690 | + <a style="line-height: 30px;float: left;margin-left: 10px;" href="https://github.com/lingfan/due-v2-example">due-v2-example</a> |
| 691 | + </li> |
| 692 | +</ul> |
| 693 | + |
| 694 | +### 17.交流与讨论 |
680 | 695 |
|
681 | 696 | <img title="" src="group_qrcode.jpeg" alt="交流群" width="175"><img title="" src="personal_qrcode.jpeg" alt="个人二维码" width="177"> |
682 | 697 |
|
|
0 commit comments