Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
cmd
|
|
|
connsvr
command
|
|
|
infosvr
command
|
|
|
mainsvr
command
|
|
|
mysqlsvr
command
|
|
|
roomcentersvr
command
|
|
|
web_svr
command
|
|
|
lib
|
|
|
api/datetime
Package datetime 提供进程级缓存的时间快照,避免业务热路径每次都调用 time.Now() 的系统调用开销,并保证同一"逻辑帧"内所有调用方读到一致的时间值。
|
Package datetime 提供进程级缓存的时间快照,避免业务热路径每次都调用 time.Now() 的系统调用开销,并保证同一"逻辑帧"内所有调用方读到一致的时间值。 |
|
api/gerr
Package gerr is the canonical framework error model for GoOne (modelled after kratos/errors, adapted to g1_protocol.ErrorCode).
|
Package gerr is the canonical framework error model for GoOne (modelled after kratos/errors, adapted to g1_protocol.ErrorCode). |
|
api/logo
Package logo 在服务启动时打印框架 CLI 标识与版本信息。
|
Package logo 在服务启动时打印框架 CLI 标识与版本信息。 |
|
contrib/registry/kubernetes
The package registry simply implements the Kubernetes-based Registry
|
The package registry simply implements the Kubernetes-based Registry |
|
db/ssdb
by Iori 2022/1/4
|
by Iori 2022/1/4 |
|
internal/itest
Package itest 提供集成测试的统一门控与预检工具。
|
Package itest 提供集成测试的统一门控与预检工具。 |
|
net/gnet_server
gnet_tcp.go implements the event-driven TCP transport backend (gnet v1, epoll/kqueue based): no per-connection goroutines, frames are split by a length-field codec inside the event loop.
|
gnet_tcp.go implements the event-driven TCP transport backend (gnet v1, epoll/kqueue based): no per-connection goroutines, frames are split by a length-field codec inside the event loop. |
|
net/kcp_server
Package kcp_server provides the KCP transport for the gateway, aligned with tcp_server: per-connection read/write goroutines, a stream reassembly buffer for frame splitting, pooled write buffers and refreshed read deadlines.
|
Package kcp_server provides the KCP transport for the gateway, aligned with tcp_server: per-connection read/write goroutines, a stream reassembly buffer for frame splitting, pooled write buffers and refreshed read deadlines. |
|
service/bus
Package bus 定义服务间消息总线的抽象(IBus)、显式 driver 注册表与地址解析。
|
Package bus 定义服务间消息总线的抽象(IBus)、显式 driver 注册表与地址解析。 |
|
service/bus/driver/kafka
Package kafka provides the Kafka bus driver.
|
Package kafka provides the Kafka bus driver. |
|
service/bus/driver/nats
Package nats provides the NATS bus driver.
|
Package nats provides the NATS bus driver. |
|
service/bus/driver/nsq
Package nsq provides the NSQ bus driver.
|
Package nsq provides the NSQ bus driver. |
|
service/bus/driver/rabbitmq
Package rabbitmq provides the RabbitMQ bus driver.
|
Package rabbitmq provides the RabbitMQ bus driver. |
|
service/bus/driver/rocketmq
Package rocketmq provides the RocketMQ bus driver.
|
Package rocketmq provides the RocketMQ bus driver. |
|
service/bus/internal/wire
Package wire contains the shared wire-format helpers used by every bus driver: the 12-byte bus frame header, pooled frame assembly and bounded channel operations.
|
Package wire contains the shared wire-format helpers used by every bus driver: the 12-byte bus frame header, pooled frame assembly and bounded channel operations. |
|
service/router
Package router 处理服务器之间的消息收发,使用 bus 作为底层消息传输。
|
Package router 处理服务器之间的消息收发,使用 bus 作为底层消息传输。 |
|
service/runtime
Package runtime 提供 GoOne 服务统一的应用生命周期。
|
Package runtime 提供 GoOne 服务统一的应用生命周期。 |
|
service/runtime/bussvc
Package bussvc 提供 bus 服务(connsvr/mainsvr/infosvr/mysqlsvr/roomcentersvr)在 runtime.App 之上的标准 Component 装配,取代旧的 bootstrap/busapp。
|
Package bussvc 提供 bus 服务(connsvr/mainsvr/infosvr/mysqlsvr/roomcentersvr)在 runtime.App 之上的标准 Component 装配,取代旧的 bootstrap/busapp。 |
|
service/scheduler
Package scheduler 提供受生命周期管理的周期任务(Task),取代旧的 application.Run 全局 10ms Tick。
|
Package scheduler 提供受生命周期管理的周期任务(Task),取代旧的 application.Run 全局 10ms Tick。 |
|
util/bufpool
Package bufpool 提供共享的字节缓冲池,用于热路径(网关写合并、帧装配)的每消息 暂存缓冲。
|
Package bufpool 提供共享的字节缓冲池,用于热路径(网关写合并、帧装配)的每消息 暂存缓冲。 |
|
util/encoding/msgp
Package msgp defines the protobuf codec.
|
Package msgp defines the protobuf codec. |
|
util/encoding/proto
Package proto defines the protobuf codec.
|
Package proto defines the protobuf codec. |
|
util/timer
Package timer 提供层级时间轮(Hierarchical Timing Wheel),适用于海量延时任务 调度,如帧同步的技能 CD、buff 到期、定时邮件、连接超时、延迟队列等。
|
Package timer 提供层级时间轮(Hierarchical Timing Wheel),适用于海量延时任务 调度,如帧同步的技能 CD、buff 到期、定时邮件、连接超时、延迟队列等。 |
|
web/http_client
Package http_client 是 lib/api/http_client 的兼容代理。
|
Package http_client 是 lib/api/http_client 的兼容代理。 |
|
web/http_sign
Package http_sign 计算并校验 HTTP 请求签名。
|
Package http_sign 计算并校验 HTTP 请求签名。 |
|
module
|
|
|
conf
Package conf 是 GoOne 的统一配置入口:多格式 decoder(yaml/toml/json)+ 点分 key 访问 + 不可变快照 + 预留热更 Watch。
|
Package conf 是 GoOne 的统一配置入口:多格式 decoder(yaml/toml/json)+ 点分 key 访问 + 不可变快照 + 预留热更 Watch。 |
|
gconf
Package gconf 定义 GoOne 各服务的配置 struct 类型。
|
Package gconf 定义 GoOne 各服务的配置 struct 类型。 |
|
src
|
|
|
web_svr/globals
Package globals @Description: 全局服务管理器
|
Package globals @Description: 全局服务管理器 |
|
tools
|
|
|
cfgtool
command
|
|
|
cmd/checkdocs
command
Command checkdocs 递归扫描 docs/ 目录下所有 Markdown 文件,校验其中的相对链接 ([text](path) 与 <path> 形式)指向的本地文件确实存在。
|
Command checkdocs 递归扫描 docs/ 目录下所有 Markdown 文件,校验其中的相对链接 ([text](path) 与 <path> 形式)指向的本地文件确实存在。 |
|
cmd/gencmdproto
command
|
|
|
cmd/genproto
command
|
|
|
cmd/scaffold
command
Package main implements a lightweight scaffold tool for creating new GoOne server skeletons.
|
Package main implements a lightweight scaffold tool for creating new GoOne server skeletons. |
|
protoc-gen-goone
command
|
|
|
tester/app/actor
Package actor 回归测试模拟玩家:组合 session 会话层与业务测试组件。
|
Package actor 回归测试模拟玩家:组合 session 会话层与业务测试组件。 |
|
tester/app/component/inventory
Package inventory 背包/道具/掉落/恭喜获得 4 系统的 tester 回归组件。
|
Package inventory 背包/道具/掉落/恭喜获得 4 系统的 tester 回归组件。 |
|
tester/app/engine
Package engine 回归测试引擎:按配置并发拉起 N 个模拟玩家,汇总 PASS/FAIL。
|
Package engine 回归测试引擎:按配置并发拉起 N 个模拟玩家,汇总 PASS/FAIL。 |
|
tester/cmd/capacity
command
Capacity load generator for GoOne connsvr.
|
Capacity load generator for GoOne connsvr. |
|
tester/cmd/stress
command
stress 全流程压力测试入口(独立客户端进程)。
|
stress 全流程压力测试入口(独立客户端进程)。 |
|
tester/cmd/tester
command
tester 回归测试入口(独立客户端进程)。
|
tester 回归测试入口(独立客户端进程)。 |
|
tester/internal/console
Package console 压测终端可视化面板 + stdin 命令干预。
|
Package console 压测终端可视化面板 + stdin 命令干预。 |
|
tester/internal/pprofcollect
Package pprofcollect 从被测 Go 服务器的 pprof HTTP 端点采集资源指标与 profile 存档。
|
Package pprofcollect 从被测 Go 服务器的 pprof HTTP 端点采集资源指标与 profile 存档。 |
|
tester/internal/report
Package report capacity_matrix 把多份 stress JSON 原始报告汇总为容量矩阵 Markdown (V4 P1-03)。
|
Package report capacity_matrix 把多份 stress JSON 原始报告汇总为容量矩阵 Markdown (V4 P1-03)。 |
|
tester/internal/session
Package session 模拟客户端会话层:TCP/WebSocket 连接、CSPacket 编解码、同步请求-响应、登录流程。
|
Package session 模拟客户端会话层:TCP/WebSocket 连接、CSPacket 编解码、同步请求-响应、登录流程。 |
|
tester/internal/stats
Package stats 压测/回归通用的内存统计中心。
|
Package stats 压测/回归通用的内存统计中心。 |
|
tester/internal/testcfg
Package testcfg 统一测试配置:单元/回归测试与全流程压力测试共用一份 tester.toml。
|
Package testcfg 统一测试配置:单元/回归测试与全流程压力测试共用一份 tester.toml。 |
|
tester/stress
Package stress 全流程压力测试引擎。
|
Package stress 全流程压力测试引擎。 |
Click to show internal directories.
Click to hide internal directories.