{"id":15319702,"url":"https://github.com/lyrictian/queue","last_synced_at":"2025-04-15T02:30:29.919Z","repository":{"id":57485633,"uuid":"103228584","full_name":"LyricTian/queue","owner":"LyricTian","description":"A task queue library for Go.","archived":false,"fork":false,"pushed_at":"2022-04-12T23:57:03.000Z","size":14,"stargazers_count":33,"open_issues_count":0,"forks_count":22,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-28T14:12:11.156Z","etag":null,"topics":["go-queue","go-task-queue","queue","task-queue"],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/LyricTian/queue","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/LyricTian.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":"2017-09-12T06:00:39.000Z","updated_at":"2024-07-21T17:33:31.000Z","dependencies_parsed_at":"2022-09-11T16:01:22.698Z","dependency_job_id":null,"html_url":"https://github.com/LyricTian/queue","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LyricTian%2Fqueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LyricTian%2Fqueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LyricTian%2Fqueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LyricTian%2Fqueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LyricTian","download_url":"https://codeload.github.com/LyricTian/queue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248993797,"owners_count":21195256,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["go-queue","go-task-queue","queue","task-queue"],"created_at":"2024-10-01T09:05:46.715Z","updated_at":"2025-04-15T02:30:29.707Z","avatar_url":"https://github.com/LyricTian.png","language":"Go","readme":"# queue\n\n\u003e A task queue for mitigating server pressure in high concurrency situations and improving task processing.\n\n[![Build][Build-Status-Image]][Build-Status-Url] [![Codecov][codecov-image]][codecov-url] [![ReportCard][reportcard-image]][reportcard-url] [![GoDoc][godoc-image]][godoc-url] [![License][license-image]][license-url]\n\n## Get\n\n``` bash\ngo get -u -v github.com/LyricTian/queue\n```\n\n## Usage\n\n``` go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/LyricTian/queue\"\n)\n\nfunc main() {\n\tq := queue.NewQueue(10, 100)\n\tq.Run()\n\n\tdefer q.Terminate()\n\n\tjob := queue.NewJob(\"hello\", func(v interface{}) {\n\t\tfmt.Printf(\"%s,world \\n\", v)\n\t})\n\tq.Push(job)\n\n\t// output: hello,world\n}\n\n```\n\n## MIT License\n\n``` text\n    Copyright (c) 2017 Lyric\n```\n\n[License-Url]: http://opensource.org/licenses/MIT\n[License-Image]: https://img.shields.io/npm/l/express.svg\n[Build-Status-Url]: https://travis-ci.org/LyricTian/queue\n[Build-Status-Image]: https://travis-ci.org/LyricTian/queue.svg?branch=master\n[codecov-url]: https://codecov.io/gh/LyricTian/queue\n[codecov-image]: https://codecov.io/gh/LyricTian/queue/branch/master/graph/badge.svg\n[ReportCard-Url]: https://goreportcard.com/report/github.com/LyricTian/queue\n[ReportCard-Image]: https://goreportcard.com/badge/github.com/LyricTian/queue\n[GoDoc-Url]: https://godoc.org/github.com/LyricTian/queue\n[GoDoc-Image]: https://godoc.org/github.com/LyricTian/queue?status.svg","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyrictian%2Fqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flyrictian%2Fqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flyrictian%2Fqueue/lists"}