{"id":16683068,"url":"https://github.com/hlts2/ip-hash","last_synced_at":"2025-09-11T21:08:34.637Z","repository":{"id":57517144,"uuid":"141304061","full_name":"hlts2/ip-hash","owner":"hlts2","description":"ip-hash balancing algorithm, based on round-robin.","archived":false,"fork":false,"pushed_at":"2019-03-14T04:21:32.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-02T17:46:18.644Z","etag":null,"topics":["algorithm","balancer","balancing","balancing-algorithm","go","golang","golang-library","goroutine-safe","ip","ip-hash","library","round-robin","threadsafe"],"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/hlts2.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":"2018-07-17T14:50:23.000Z","updated_at":"2023-04-27T08:23:24.000Z","dependencies_parsed_at":"2022-09-15T21:52:15.314Z","dependency_job_id":null,"html_url":"https://github.com/hlts2/ip-hash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hlts2/ip-hash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlts2%2Fip-hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlts2%2Fip-hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlts2%2Fip-hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlts2%2Fip-hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hlts2","download_url":"https://codeload.github.com/hlts2/ip-hash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlts2%2Fip-hash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274705040,"owners_count":25334447,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["algorithm","balancer","balancing","balancing-algorithm","go","golang","golang-library","goroutine-safe","ip","ip-hash","library","round-robin","threadsafe"],"created_at":"2024-10-12T14:10:14.227Z","updated_at":"2025-09-11T21:08:34.572Z","avatar_url":"https://github.com/hlts2.png","language":"Go","readme":"# ip-hash\nip-hash is balancing algorithm, based on [round-robin](https://github.com/hlts2/round-robin).\n\n## Requrement\n\nGo (\u003e= 1.8)\n\n## Installation\n\n```shell\ngo get github.com/hlts2/ip-hash\n```\n\n## Example\n```go\nip, _ := iphash.New([]*url.URL{\n    {Host: \"192.168.33.10\"},\n    {Host: \"192.168.33.11\"},\n    {Host: \"192.168.33.12\"},\n })\n\nip.Next(\u0026url.URL{Host: \"192.168.33.10\"})  // {Host: \"192.168.33.10\"}\nip.Next(\u0026url.URL{Host: \"192.168.33.10\"})  // {Host: \"192.168.33.10\"}\nip.Next(\u0026url.URL{Host: \"192.168.33.44\"})  // {Host: \"192.168.33.11\"}\nip.Next(\u0026url.URL{Host: \"192.168.33.44\"})  // {Host: \"192.168.33.11\"}\n```\n\n## Author\n[hlts2](https://github.com/hlts2)\n\n## LICENSE\nip-hash released under MIT license, refer [LICENSE](https://github.com/hlts2/ip-hash/blob/master/LICENSE) file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhlts2%2Fip-hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhlts2%2Fip-hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhlts2%2Fip-hash/lists"}