Git Product home page Git Product logo

gmq's Introduction

#GMQ 消息模块组合架构

自动管理channel 实现配置变动后 模块重启

模块重启前保存他的消息队列,重启后在消息原来的消息

todo list

  • 模块停止
  • 清空模块队列中的任务
  • 模块停止后启动
  • 平滑停止,主程序在所有模块的队列中的任务执行完毕后停止
  • 讲当前模块中的任务做磁盘持久化

#数据库配置 支持多数据库配置

dbpool:
   default: xyt
   db1:
      database: "gateway"
      host: "xytschool.com"
      username: "dbuser"
      password: "dbpwd"
      drive: "mysql,pg,sqllite"
   db2:
      database: "gateway"
      host: "xytschool.com"
      username: "dbuser"
      password: "dbpwd"
      drive: "mysql,pg,sqllite"    

#数据库使用

  • //获取数据库信息 GetDb(dnname string) (*gorm.DB, error)
  • //获取默认数据库 GetDefaultDb() (*gorm.DB, error)

模块使用

   moduleName:
      type : inner/exe/dll/so
      enable: 1/ture

moduleName 模块名称

  • type 模块类型目前支持 内部模块(golang),可执行程序, dll/so windows,linux动态库方式
  • 通信方式支持 mqtt,http,grpc,websocket方式
  • enable 配置模块是否要启用

mqtt模块配置

   mqtt:
      type : inner
      productKey : a1GvAwy4lNt
      deviceSecret: ulsuWZkXGzOQsR5L5AYUQpQxLKvidmUi
      deviceName:  PC1219

web模块功能

gmq's People

Contributors

gw123 avatar

Stargazers

Gaohong avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.