{"id":13607034,"url":"https://github.com/skyzh/go-dht","last_synced_at":"2025-10-27T03:31:28.310Z","repository":{"id":85472387,"uuid":"196842435","full_name":"skyzh/go-dht","owner":"skyzh","description":"🌎 Chord in golang","archived":false,"fork":false,"pushed_at":"2019-07-17T07:44:30.000Z","size":88,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T01:51:17.203Z","etag":null,"topics":["chord","dht","go","grpc","kademlia","protobuf"],"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/skyzh.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}},"created_at":"2019-07-14T13:53:02.000Z","updated_at":"2024-12-08T02:59:53.000Z","dependencies_parsed_at":"2023-03-13T05:26:02.124Z","dependency_job_id":null,"html_url":"https://github.com/skyzh/go-dht","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyzh%2Fgo-dht","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyzh%2Fgo-dht/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyzh%2Fgo-dht/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyzh%2Fgo-dht/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyzh","download_url":"https://codeload.github.com/skyzh/go-dht/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238431591,"owners_count":19471419,"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":["chord","dht","go","grpc","kademlia","protobuf"],"created_at":"2024-08-01T19:01:14.951Z","updated_at":"2025-10-27T03:31:27.929Z","avatar_url":"https://github.com/skyzh.png","language":"Go","funding_links":[],"categories":["资源清单"],"sub_categories":["CS1956 (原 MS125) - 编程综合实践 (荣誉)"],"readme":"# go-dht\n\n[![Build Status](https://travis-ci.com/skyzh/go-dht.svg?branch=master)](https://travis-ci.com/skyzh/go-dht)\n\nDHT models in golang. Use gRPC for communication.\n\n\n## Protocol\n\ngRPC is used for communication between nodes. `Chord` and `Kad` RPCs are defined as\ntwo different services in protobuf file. And here's an additional service called `DHT`,\nthrough which clients control DHT node and modify keys in DHT.\n\n## Chord\n\nChord is a DHT protocol and algorithm. Here I use SHA-1 as hashing function, and select first \n16 bits of hashing result as node identifier. You may change it in `node/chord.go`.\n\nTo run tests,\n```bash\ngo test ./node -v -short\n```\n\nFor system test (build cluster and stabilize it, usually takes longer time),\n```bash\ngo test ./node -v\n```\n\nTo quickly setup a cluster of 50 nodes,\n```bash\ngo run ./rpc_cluster\n```\n\nTo run a single node,\n```bash\ngo run ./rpc_node\n```\n\nTo test key modification in cluster (put, query and delete 2000 entries),\n```bash\ngo run ./rpc_client\n```\n\n## Kademlia\n\nKademlia is expected to be implemented.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyzh%2Fgo-dht","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyzh%2Fgo-dht","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyzh%2Fgo-dht/lists"}