{"id":34126589,"url":"https://github.com/hrygo/gosms","last_synced_at":"2026-04-02T00:36:28.307Z","repository":{"id":48792829,"uuid":"516952671","full_name":"hrygo/gosms","owner":"hrygo","description":"gosms: 采用Golang与gnet框架实现的高性能短信网关（SMC短信中心模拟）。","archived":false,"fork":false,"pushed_at":"2022-08-24T10:57:28.000Z","size":271,"stargazers_count":51,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-12T05:19:48.493Z","etag":null,"topics":["cmpp","gnet","golang","sgip","smgp","smpp","sms","sms-gateway"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hrygo.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}},"created_at":"2022-07-23T03:59:56.000Z","updated_at":"2025-08-25T03:08:04.000Z","dependencies_parsed_at":"2022-08-12T19:51:13.119Z","dependency_job_id":null,"html_url":"https://github.com/hrygo/gosms","commit_stats":null,"previous_names":["hrygo/gosmsn"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/hrygo/gosms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrygo%2Fgosms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrygo%2Fgosms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrygo%2Fgosms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrygo%2Fgosms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrygo","download_url":"https://codeload.github.com/hrygo/gosms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrygo%2Fgosms/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31018530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T03:51:26.850Z","status":"ssl_error","status_checked_at":"2026-03-27T03:51:09.693Z","response_time":164,"last_error":"SSL_read: 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":["cmpp","gnet","golang","sgip","smgp","smpp","sms","sms-gateway"],"created_at":"2025-12-14T23:45:23.086Z","updated_at":"2026-04-02T00:36:28.299Z","avatar_url":"https://github.com/hrygo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GOSMS\n\n## TODO\n\n- [ ] 服务端优雅停机\n- [ ] 联通MO消息及Report消息支持\n- [ ] 服务端日志采用hooker持久化存储到ES\n\n## Quick Start\n\n从源码构建并启动\n\n```bash\n# 修改 .env 文件中的 GOARCH 为目标平台的 CPU 架构. 常用的值 amd64, arm64, i386, armhf等\n# 构建服务端\nmake linux\n# make darwin\n\n# 构建客户端 \nmake client\n\ncd publish\nmv gosms-* gosms\n# 启动服务端 \n./start.sh\n\n# 启动客户端\ncd cli\n./smscli -p 13800001111 -m 'hello world, 你好世界！' -i 10000\n# -p 手机号\n# -m 短信内容\n# -i 迭代次数\n```\n\n## 采用mongodb存储客户端认证配置\n\n**1.修改配置文件 /config/config.yaml**\n\n```yaml\nAuthClient:\n  StoreType: \"mongo\"\nMongo:\n  URI: \"mongodb+srv://\u003cuser\u003e:\u003cpasswd\u003e@cluster0.ppiyq4w.mongodb.net/test\"\n  ConnectTimeout: 15s\n  ReadTimeout: 15s\n  WriteTimeout: 15s\n  HeartbeatInterval: 60s\n  MinPoolSize: 2\n  MaxPoolSize: 10\n```\n\n**2.然后通过环境变量设置用户名密码**\n\n```bash\nexport MONGO_USER=xxx\nexport MONGO_PASSWD=xxx\n```\n\n**3.初始化mongodb数据**\n\n```bash\nmake mongo\n```\n\n**4.如果不启用MongoDB，需设置**\n\n```yaml\nAuthClient:\n  StoreType: \"yml\"\n\nMongo:\n  URI: \"\"\n````\n\n## 采用mongodb存储客户端消息发送记录\n\n同上，修改smc_client对应的配置文件。如果不启用MongoDB，不设置 `Mongo.URI` 即可。\n\n## 功能及原理说明\n\nTODO 其他说明文档待补充","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrygo%2Fgosms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrygo%2Fgosms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrygo%2Fgosms/lists"}