{"id":18893578,"url":"https://github.com/shgopher/limiter","last_synced_at":"2026-02-27T01:30:16.927Z","repository":{"id":114582380,"uuid":"329298328","full_name":"shgopher/limiter","owner":"shgopher","description":"使用channel制作的限流算法，代码量极少。","archived":false,"fork":false,"pushed_at":"2021-01-13T12:30:59.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-05T23:31:33.802Z","etag":null,"topics":["channel","current-limiting","golang"],"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/shgopher.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}},"created_at":"2021-01-13T12:17:03.000Z","updated_at":"2024-06-19T12:37:09.575Z","dependencies_parsed_at":"2023-07-17T05:15:11.165Z","dependency_job_id":null,"html_url":"https://github.com/shgopher/limiter","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgopher%2Flimiter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgopher%2Flimiter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgopher%2Flimiter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shgopher%2Flimiter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shgopher","download_url":"https://codeload.github.com/shgopher/limiter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239869221,"owners_count":19710485,"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":["channel","current-limiting","golang"],"created_at":"2024-11-08T08:14:27.591Z","updated_at":"2026-02-27T01:30:16.890Z","avatar_url":"https://github.com/shgopher.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# limiter\n使用channel制作的限流算法，代码量极少。基本的原理就是把channel的那个队列当成令牌筒，channel天生的多线程安全。\n\n`_test.go`中的test是一个例子：2秒钟，限流10次数，然后往复运动。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshgopher%2Flimiter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshgopher%2Flimiter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshgopher%2Flimiter/lists"}