mqant

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 2 Imported by: 2

README

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

mqant

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

mqant 2x开始支持分布式服务发现

请务必先查看2x跟1x版本差异

为什么要用golang

Node、PHP、Java 和 Go 服务端 I/O 性能PK

特性

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

社区

QQ交流群 :463735103

技术交流社区:www.mqant.com

模块

将不断加入更多的模块

mqant组件库

    短信验证码
    房间模块

压力测试工具:armyant

社区贡献的库

mqant-docker MQTT-Laya

依赖项目

go get github.com/gorilla/mux
go get go.etcd.io/etcd/clientv3
go get go.etcd.io/etcd/etcdserver/api/v3rpc/rpctypes
go get github.com/hashicorp/consul
go get github.com/golang/protobuf
go get github.com/golang/net/context
go get github.com/gomodule/redigo
go get github.com/nats-io/nats.go

文档

快速上手:

mqant wiki

概述

  1. mqant的设计动机
  2. mqant框架介绍
  3. 框架架构概述
  4. 通信协议与客户端支持

...

演示示例

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

在线Demo演示源码下载

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

框架架构

mqant的设计动机

框架架构

下一步计划

  1. 分布式架构管理模块(Master)
    1. 模块发现
    2. 模块管理
      1. 模块动态添加删除
      2. 模块状态监控
  2. 新增英文版文档 希望有兴趣的英语好的同学能参与帮忙编写英文版本的文档
  3. 【已完成】异常日志监控和汇报
    1. 异常日志分类汇总
    2. 定时将异常日志发送到Email
    3. 定时将异常日志通过webhook发送到团队协作工具中(钉钉,worktile等)
  4. 【已完成】rpc添加track分布式跟踪系统的接口Appdash,用Go实现的分布式系统跟踪神器

贡献者

欢迎提供dev分支的pull request

bug请直接通过issue提交

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

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

打赏作者

版本日志

v1.0.0新特性

Documentation

Overview

Copyright 2014 mqant Author. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateApp

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

Types

This section is empty.

Directories

Path Synopsis
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.
beego/alils
Package alils implements the SDK(v0.5.0) of Simple Log Service(abbr.
Package alils implements the SDK(v0.5.0) of Simple Log Service(abbr.
modules
* 一定要记得在confin.json配置这个模块的参数,否则无法使用 * 一定要记得在confin.json配置这个模块的参数,否则无法使用
* 一定要记得在confin.json配置这个模块的参数,否则无法使用 * 一定要记得在confin.json配置这个模块的参数,否则无法使用
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
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
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