{"id":20339692,"url":"https://github.com/pangum/mqtt","last_synced_at":"2026-02-15T12:35:55.439Z","repository":{"id":38325502,"uuid":"397803148","full_name":"pangum/mqtt","owner":"pangum","description":"盘古MQTT集成，在原来MQTT框架的基础上增加了如下功能：1、深度与盘古框架集成（可以最大限度的加速业务系统的开发）；2、友好的API（在原来的API基础上，增加更易使用的API接口）；3、高度可配置（可以通过配置文件和Option来定制运行时功能）；4、动态Clientid；5、可定制序列化器（已集成JSON、Msgpack、Protobuf、XML以及各种内置类型）","archived":false,"fork":false,"pushed_at":"2025-12-05T08:19:21.000Z","size":377,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-08T16:45:48.359Z","etag":null,"topics":["framework","golang","library","mqtt","mqtt-client","mqtt-protocol","pangu"],"latest_commit_sha":null,"homepage":"https://mqtt.pangum.tech","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pangum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-08-19T03:22:54.000Z","updated_at":"2025-12-05T08:19:17.000Z","dependencies_parsed_at":"2023-01-23T15:01:26.479Z","dependency_job_id":"5621b2d4-4789-4d2f-856c-187915658c7b","html_url":"https://github.com/pangum/mqtt","commit_stats":null,"previous_names":["storezhang/pangu-mqtt"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/pangum/mqtt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pangum%2Fmqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pangum%2Fmqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pangum%2Fmqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pangum%2Fmqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pangum","download_url":"https://codeload.github.com/pangum/mqtt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pangum%2Fmqtt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29478354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T11:35:25.641Z","status":"ssl_error","status_checked_at":"2026-02-15T11:34:57.128Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["framework","golang","library","mqtt","mqtt-client","mqtt-protocol","pangu"],"created_at":"2024-11-14T21:18:06.819Z","updated_at":"2026-02-15T12:35:55.400Z","avatar_url":"https://github.com/pangum.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mqtt\n\n盘古框架`Mqtt`集成，方便用户在`盘古`框架中接入`Mqtt`功能\n\n\u003e 本框架对`Mqtt`做了一定的封装，使用参看使用文档\n\n## 快速开始\n\n`Mqtt`使用非常简单，只需要定义`配置`和依赖项\n\n\u003e `配置`有很多，但是大部分都有默认值，可以参考[配置文档](https://mqtt.pangum.tech/config)\n\n`配置`代码如下\n\n```yaml\nmqtt:\n  broker:\n    - tcp://192.168.95.102:31883\n    - ws://192.168.95.102:38083\n  options:\n    username: test_username\n    password: test_password\n    clientid: ${HOSTNAME}\n```\n\n`依赖项`的代码如下\n\n```go\npackage main\n\nimport (\n  `github.com/pangum/mqtt`\n)\n\ntype agent struct {\n  client *mqtt.Client\n}\n\nfunc newAgent(client *mqtt.Client) *agent {\n  return \u0026agent{\n    client: client,\n  }\n}\n\nfunc (a *agent) subscribe() error {\n  return a.client.Subscribe(`topic`, opts...)\n}\n```\n\n\u003e `Mqtt`有非常多的配置项，请参看[**使用文档**](https://mqtt.pangum.tech/guide)\n\n## 文档\n\n[点击这里查看最新文档](https://mqtt.pangum.tech)\n\n## 使用示例\n\n[点击这里查看最新的代码示例](example)\n\n## 交流\n\n![微信群](doc/.vuepress/public/communication/wxwork.jpg)\n\n## 捐助\n\n![支持宝](https://github.com/storezhang/donate/raw/master/alipay-small.jpg)\n![微信](https://github.com/storezhang/donate/raw/master/weipay-small.jpg)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpangum%2Fmqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpangum%2Fmqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpangum%2Fmqtt/lists"}