mqant

package module
v1.3.93-0...-ab5ed69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

因为golang 1.13以后go mod强制要求使用major版本规则,mqant目前还不需要,因此只能先将版本号回退为v1.x

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

演示示例

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】

打赏作者

Documentation

Overview

Package mqant mqant

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApp

func CreateApp(opts ...module.Option) module.App

CreateApp 创建mqant的app实例

Types

This section is empty.

Directories

Path Synopsis
Package app mqant默认应用实现
Package app mqant默认应用实现
Package gate 长连接网关定义 Package gate 网关配置
Package gate 长连接网关定义 Package gate 网关配置
base
Package basegate handler Copyright 2014 mqant Author.
Package basegate handler Copyright 2014 mqant Author.
Package httpgateway provides an http-rpc handler which provides the entire http request over rpc Package httpgateway 网关配置
Package httpgateway provides an http-rpc handler which provides the entire http request over rpc Package httpgateway 网关配置
api
errors
Package errors provides a way to return detailed information for an rpc request error.
Package errors provides a way to return detailed information for an rpc request error.
log
Package log beego日志 Package log 日志结构定义 Package log 日志初始化
Package log beego日志 Package log 日志结构定义 Package log 日志初始化
beego
Package logs provide a general log interface Usage: import "github.com/astaxie/beego/logs" log := NewLogger(10000) log.SetLogger("console", "") > the first params stand for how many channel Use it like this: log.Trace("trace") log.Info("info") log.Warn("warning") log.Debug("debug") log.Critical("critical") more docs http://beego.me/docs/module/logs.md Copyright 2014 mqant Author.
Package logs provide a general log interface Usage: import "github.com/astaxie/beego/logs" log := NewLogger(10000) log.SetLogger("console", "") > the first params stand for how many channel Use it like this: log.Trace("trace") log.Info("info") log.Warn("warning") log.Debug("debug") log.Critical("critical") more docs http://beego.me/docs/module/logs.md Copyright 2014 mqant Author.
Package module 模块定义
Package module 模块定义
base
Package basemodule 模块管理 Package basemodule 模块管理器 Package basemodule 服务节点实例定义 Package basemodule BaseModule定义
Package basemodule 模块管理 Package basemodule 模块管理器 Package basemodule 服务节点实例定义 Package basemodule BaseModule定义
modules
* 一定要记得在confin.json配置这个模块的参数,否则无法使用
* 一定要记得在confin.json配置这个模块的参数,否则无法使用
Package network 网络代理 Package network 网络代理器 Package network tcp网络控制器 Package network tcp服务器 Package network websocket连接器 Package network websocket服务器
Package network 网络代理 Package network 网络代理器 Package network tcp网络控制器 Package network tcp服务器 Package network websocket连接器 Package network websocket服务器
Package registry is an interface for service discovery
Package registry is an interface for service discovery
etcdv3
Package etcdv3 provides an etcd version 3 registry
Package etcdv3 provides an etcd version 3 registry
rpc
Package mqrpc rpc接口定义
Package mqrpc rpc接口定义
pb
Package rpcpb is a generated protocol buffer package.
Package rpcpb is a generated protocol buffer package.
Package selector is a way to load balance service nodes
Package selector is a way to load balance service nodes
cache
Package cache is a caching selector.
Package cache is a caching selector.
Package server is an interface for a micro server
Package server is an interface for a micro server
Package mqanttools 工具箱 Package mqanttools 字节转化 Package mqanttools 随机数生成
Package mqanttools 工具箱 Package mqanttools 字节转化 Package mqanttools 随机数生成
aes
fatih/structs
Package structs contains various utilities functions to work with structs.
Package structs contains various utilities functions to work with structs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL