MCPcopy
hub / github.com/liangdas/mqant

github.com/liangdas/mqant @v1.5.3 sqlite

repository ↗ · DeepWiki ↗ · release v1.5.3 ↗
1,671 symbols 4,082 edges 141 files 722 documented · 43%
README

mqant

mqant是一款基于Golang语言的简洁,高效,高性能的分布式微服务游戏服务器框架,研发的初衷是要实现一款能支持高并发,高性能,高实时性,的游戏服务器框架,也希望mqant未来能够做即时通讯和物联网方面的应用

特性

  1. 高性能分布式
  2. 支持分布式服务注册发现,是一款功能完整的微服务框架
  3. 基于golang协程,开发过程全程做到无callback回调,代码可读性更高
  4. 远程RPC使用nats作为通道
  5. 网关采用MQTT协议,无需再开发客户端底层库,直接套用已有的MQTT客户端代码库,可以支持IOS,Android,websocket,PC等多平台通信
  6. 默认支持mqtt协议,同时网关也支持开发者自定义的粘包协议

文档

在线文档 在线文档-访问不了用这个

模块

将不断加入更多的模块

mqant组件库

    短信验证码
    房间模块

压力测试工具:armyant

社区贡献的库

mqant-docker MQTT-Laya

应用案例

恰玩-实时互动游戏社交app

演示示例

mqant 项目只包含mqant的代码文件
mqantserver 项目包括了完整的测试demo代码和mqant所依赖的库
如果你是新手可以优先下载mqantserver项目进行试验

在线Demo演示源码下载

多人对战吃小球游戏(绿色小球是在线玩家,点击屏幕任意位置移动小球,可以同时开两个浏览器测试,支持移动端)源码下载

贡献者

欢迎提供dev分支的pull request

bug请直接通过issue提交

凡提交代码和建议, bug的童鞋, 均会在下列贡献者名单者出现

  1. xlionet
  2. lulucas
  3. c2matrix
  4. bjfumac【mqant-docker】[MQTT-Laya]
  5. jarekzha 【jarekzha-master】

打赏作者

Extension points exported contracts — how you extend this code

Logger (Interface)
Logger defines the behavior of a log provider. [8 implementers]
log/beego/log.go
Watcher (Interface)
Watcher is an interface that returns updates about services within the registry. [3 implementers]
registry/watcher.go
Registry (Interface)
Registry The registry provides an interface for service discovery and an abstraction over varying implementations {consu [3 …
registry/registry.go
ProtocolMarshal (Interface)
ProtocolMarshal 数据包装 [2 implementers]
module/module.go
Conn (Interface)
Conn 网络代理接口 [2 implementers]
network/conn.go
TraceSpan (Interface)
TraceSpan A SpanID refers to a single span. [2 implementers]
log/define.go
Selector (Interface)
Selector builds on the registry as a mechanism to pick nodes and mark their status. This allows host pools and other thi [2 …
selector/selector.go
Agent (Interface)
Agent 代理 [1 implementers]
network/agent.go

Core symbols most depended-on inside this repo

Error
called by 142
server/server.go
String
called by 59
rpc/rpc.go
Kind
called by 47
utils/fatih/structs/field.go
Field
called by 46
utils/fatih/structs/field.go
Unmarshal
called by 39
rpc/rpc.go
Error
called by 36
log/log.go
Add
called by 34
utils/queue.go
Map
called by 31
utils/fatih/structs/structs.go

Shape

Method 913
Function 536
Struct 150
Interface 35
FuncType 29
TypeAlias 8

Languages

Go100%

Modules by API surface

gate/define.go107 symbols
module/module.go76 symbols
log/beego/log.go72 symbols
gate/base/mqtt/mqtt.go67 symbols
utils/fatih/structs/structs_test.go64 symbols
gate/base/session.go61 symbols
httpgateway/proto/api.pb.go45 symbols
app/app.go39 symbols
server/server.go34 symbols
rpc/rpc.go33 symbols
rpc/pb/mqant_rpc.pb.go30 symbols
module/base/base_module.go29 symbols

Dependencies from manifests, versioned

github.com/armon/go-metricsv0.3.10 · 1×
github.com/coreos/bboltv1.3.3 · 1×
github.com/coreos/etcdv3.3.17+incompatible · 1×
github.com/coreos/go-semverv0.3.0 · 1×
github.com/coreos/go-systemdv0.0.0-2019071911485 · 1×
github.com/coreos/pkgv0.0.0-2018092819010 · 1×
github.com/dgrijalva/jwt-gov3.2.0+incompatible · 1×
github.com/golang/groupcachev0.0.0-2021033122475 · 1×
github.com/google/btreev1.0.0 · 1×
github.com/grpc-ecosystem/go-grpc-prometheusv1.2.0 · 1×

For agents

$ claude mcp add mqant \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact