Directories
¶
| Path | Synopsis |
|---|---|
|
api
|
|
|
datetime
Package datetime 提供进程级缓存的时间快照,避免业务热路径每次都调用 time.Now() 的系统调用开销,并保证同一"逻辑帧"内所有调用方读到一致的时间值。
|
Package datetime 提供进程级缓存的时间快照,避免业务热路径每次都调用 time.Now() 的系统调用开销,并保证同一"逻辑帧"内所有调用方读到一致的时间值。 |
|
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). |
|
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. |
|
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 注册表与地址解析。 |
|
bus/driver/kafka
Package kafka provides the Kafka bus driver.
|
Package kafka provides the Kafka bus driver. |
|
bus/driver/nats
Package nats provides the NATS bus driver.
|
Package nats provides the NATS bus driver. |
|
bus/driver/nsq
Package nsq provides the NSQ bus driver.
|
Package nsq provides the NSQ bus driver. |
|
bus/driver/rabbitmq
Package rabbitmq provides the RabbitMQ bus driver.
|
Package rabbitmq provides the RabbitMQ bus driver. |
|
bus/driver/rocketmq
Package rocketmq provides the RocketMQ bus driver.
|
Package rocketmq provides the RocketMQ bus driver. |
|
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. |
|
router
Package router 处理服务器之间的消息收发,使用 bus 作为底层消息传输。
|
Package router 处理服务器之间的消息收发,使用 bus 作为底层消息传输。 |
|
runtime
Package runtime 提供 GoOne 服务统一的应用生命周期。
|
Package runtime 提供 GoOne 服务统一的应用生命周期。 |
|
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。 |
|
scheduler
Package scheduler 提供受生命周期管理的周期任务(Task),取代旧的 application.Run 全局 10ms Tick。
|
Package scheduler 提供受生命周期管理的周期任务(Task),取代旧的 application.Run 全局 10ms Tick。 |
|
util
|
|
|
bufpool
Package bufpool 提供共享的字节缓冲池,用于热路径(网关写合并、帧装配)的每消息 暂存缓冲。
|
Package bufpool 提供共享的字节缓冲池,用于热路径(网关写合并、帧装配)的每消息 暂存缓冲。 |
|
encoding/msgp
Package msgp defines the protobuf codec.
|
Package msgp defines the protobuf codec. |
|
encoding/proto
Package proto defines the protobuf codec.
|
Package proto defines the protobuf codec. |
|
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 的兼容代理。 |
|
http_sign
Package http_sign 计算并校验 HTTP 请求签名。
|
Package http_sign 计算并校验 HTTP 请求签名。 |
Click to show internal directories.
Click to hide internal directories.