{"id":37111787,"url":"https://github.com/yf393136248/delay-message-queue","last_synced_at":"2026-01-14T13:14:29.530Z","repository":{"id":92025512,"uuid":"195806414","full_name":"yf393136248/delay-message-queue","owner":"yf393136248","description":"本地单机版延时消息队列","archived":false,"fork":false,"pushed_at":"2020-02-15T07:53:01.000Z","size":1582,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-21T18:00:57.616Z","etag":null,"topics":["delay-queue","go","queue"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yf393136248.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-07-08T12:21:20.000Z","updated_at":"2022-03-23T14:28:12.000Z","dependencies_parsed_at":"2024-01-26T05:14:15.604Z","dependency_job_id":"0eecf93c-c919-44b8-aaa4-5e99f6496775","html_url":"https://github.com/yf393136248/delay-message-queue","commit_stats":null,"previous_names":["yf393136248/golang-circle-chain"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yf393136248/delay-message-queue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yf393136248%2Fdelay-message-queue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yf393136248%2Fdelay-message-queue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yf393136248%2Fdelay-message-queue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yf393136248%2Fdelay-message-queue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yf393136248","download_url":"https://codeload.github.com/yf393136248/delay-message-queue/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yf393136248%2Fdelay-message-queue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["delay-queue","go","queue"],"created_at":"2026-01-14T13:14:28.904Z","updated_at":"2026-01-14T13:14:29.518Z","avatar_url":"https://github.com/yf393136248.png","language":"Go","readme":"## 本地单机版延时消息队列\n\n#### 它可以帮你实现例如订单30分钟后自动取消的功能，快速方便，替代了原始的定时轮询未支付订单，减轻了服务端的压力\n\n#### 实现方式： 通过运行该服务，您可以通过tcp链接并传输指定格式的结构文档，当达到指定的延时时间后，系统将自动调用消息格式内的脚本\n\n#### tcp传输的消息结构体为`json`结构,具体内容如下：\n#####本地脚本调用：\n```bash\n{\n\t\"type\" : \"cmd\", #结构类型，目前未使用\n\t\"script\": \"/home/php /home/script/demo.php\", #脚本调用地址\n\t\"interval\": 5, #延时数（秒）\n\t\"params\": [12, 23, \"Stersert\"] #调用脚本需要携带的参数\n}\n```\n#####远程api调用：\n```bash\n{\n\t\"type\" : \"api\", #结构类型，目前未使用\n\t\"script\": \"http://www.baidu.com\", #api调用地址, 本例将在5秒后调用该字段的远程api地址\n\t\"interval\": 5, #延时数（秒）\n\t\"params\": [] #调用脚本需要携带的参数\n}\n```\n\n####服务运行\n\u003e go run main.go\n\n\u003e 运行参数：`-port` : tcp绑定端口, 默认：`8080`，`-slot` 队列的插槽数， 默认：`60`，也就是循环一次需要的秒数\n\n#### 注意：`目前版本为单机版本，下一版本将开发可以分布式执行或api接口调用的方式`，目前是v1.0， 如果有任何建议或者问题，欢迎issue~","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyf393136248%2Fdelay-message-queue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyf393136248%2Fdelay-message-queue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyf393136248%2Fdelay-message-queue/lists"}