mqttadmin

module
v0.0.0-...-6d0effa Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT

README

Mqttadmin

A development tool for mqtt In the future, it will be a tool for mqtt management and monitoring But now it's just a tool for generating service router and mqtt client code

English | 简体中文

Dependencies

Requirements

  • Go 1.20 or higher

install

go install github.com/tinkler/mqttadmin/cmd/gen
or
git clone github.com/tinkler/mqttadmin
cd mqttadmin/cmd/gen
go install

Use

Create a new project under your GOPATH using go mod init. Place a gen.yaml file in the project root and make the neccessary change you need. Then run

gen .

This project has modified some common models, Such as user, role and permission, which can be found in the pkg/model directory. The generated route files was located in pkg/route directory.

Future

Here is a list of supported generation options

  • chi_route Chi framework route
  • proto protocol buffer
  • gsrv gRPC server
  • dart Flutter Dio
  • ts XMLHttpRequest
  • angular_delon Delon service
  • swagger swagger api doc (In processing)

ClanCloud a Saas project base on mqttadmin

License

The MIT License

Directories

Path Synopsis
cmd
gen
live code generator
live code generator
v1
internal
gen
解析gen.yaml文件并读取配置 解析gen.pro.yaml文件读取并覆盖配置
解析gen.yaml文件并读取配置 解析gen.pro.yaml文件读取并覆盖配置
rerun
build the go file to binary file and run it
build the go file to binary file and run it
mrz
v1
page
v1
permission
v1
pkg
acl
db
gs
gsrv
Code generated by github.com/tinkler/mqttadmin; DO NOT EDIT.
Code generated by github.com/tinkler/mqttadmin; DO NOT EDIT.
kv
logger
implements the logger interface for chi router
implements the logger interface for chi router
parser
parse package and generate interface
parse package and generate interface
qm
A queue manager
A queue manager
route
Code generated by github.com/tinkler/mqttadmin; DO NOT EDIT.
Code generated by github.com/tinkler/mqttadmin; DO NOT EDIT.
status
Package status provides a simple way to get the status of a service.
Package status provides a simple way to get the status of a service.
role
v1
user
v1

Jump to

Keyboard shortcuts

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