{"id":15653983,"url":"https://github.com/cirocosta/sample-rpc-go","last_synced_at":"2025-04-30T22:24:25.306Z","repository":{"id":43405718,"uuid":"121678806","full_name":"cirocosta/sample-rpc-go","owner":"cirocosta","description":"An Example of Go RPC Client and Server","archived":false,"fork":false,"pushed_at":"2019-03-05T14:14:41.000Z","size":10,"stargazers_count":27,"open_issues_count":2,"forks_count":16,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T20:33:41.721Z","etag":null,"topics":["go","golang","networking","rpc"],"latest_commit_sha":null,"homepage":"https://ops.tips/gists/example-go-rpc-client-and-server/","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/cirocosta.png","metadata":{"files":{"readme":"README.txt","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}},"created_at":"2018-02-15T20:25:37.000Z","updated_at":"2022-11-13T01:34:58.000Z","dependencies_parsed_at":"2022-07-08T21:47:20.959Z","dependency_job_id":null,"html_url":"https://github.com/cirocosta/sample-rpc-go","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/cirocosta%2Fsample-rpc-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cirocosta%2Fsample-rpc-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cirocosta%2Fsample-rpc-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cirocosta%2Fsample-rpc-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cirocosta","download_url":"https://codeload.github.com/cirocosta/sample-rpc-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251790508,"owners_count":21644228,"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","golang","networking","rpc"],"created_at":"2024-10-03T12:48:40.420Z","updated_at":"2025-04-30T22:24:25.287Z","avatar_url":"https://github.com/cirocosta.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n        DESCRIPTION\n\n                sample-rpc-go provides an example of a client-server\n                communication making use of `net/rpc` and `net/rpc/jsonrpc`.\n\n                Both client and server are meant to be run using a single\n                binary - to run a server, turn the `-server` flag on:\n\n                        ./main -server\n\n                There are three modes supported:\n\n                        - default:      binary RPC (encoding/gob) via pure TCP\n                        - http:         binary RPC (encoding/god) via HTTP\n                        - json:         JSON-RPC (1.0) via TCP\n\n                These modes are meant to be used together (server and client should\n                be on the same mode) and can be activated with the respective flags.\n\n\n        USAGE\n\n                ./main --help\n                Usage of ./main:\n                  -http\n                        whether it should use HTTP\n                  -json\n                        whether it should use json-rpc\n                  -port uint\n                        port to listen or connect to for rpc calls (default 1337)\n                  -server\n                        activates server mode\n\n\n        HACK\n\n                # Produce a binary called `main` in the repository root\n                make build\n\n                # Format\n                make fmt\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirocosta%2Fsample-rpc-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcirocosta%2Fsample-rpc-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirocosta%2Fsample-rpc-go/lists"}