{"id":15464859,"url":"https://github.com/cored/eco","last_synced_at":"2025-06-26T12:34:08.291Z","repository":{"id":66523319,"uuid":"159341880","full_name":"cored/eco","owner":"cored","description":"Experiment building an echo server with Go","archived":false,"fork":false,"pushed_at":"2018-11-28T16:19:24.000Z","size":6044,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-29T13:10:32.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/cored.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":"2018-11-27T13:43:48.000Z","updated_at":"2018-11-28T16:19:26.000Z","dependencies_parsed_at":"2023-02-28T01:15:35.612Z","dependency_job_id":null,"html_url":"https://github.com/cored/eco","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"684621176ee174a406110ece6c4420ba91d250ca"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cored/eco","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cored%2Feco","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cored%2Feco/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cored%2Feco/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cored%2Feco/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cored","download_url":"https://codeload.github.com/cored/eco/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cored%2Feco/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262068555,"owners_count":23253838,"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":[],"created_at":"2024-10-02T00:43:11.457Z","updated_at":"2025-06-26T12:34:08.261Z","avatar_url":"https://github.com/cored.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eco\n\nExperiment building an echo server with Go\n\n# What is it?\n\nEco is a simple GRPC [echo protocol](https://en.wikipedia.org/wiki/Echo_Protocol) implementation. It will be use for experimentation with[ GRPC]( https://grpc.io)\n\n# Usage\n\nRequire Golang 1.9 or above. Installation instructions [here](https://golang.org/doc/install)\n\n## Install\n\n```\n$ go get -u github.com/cored/eco\n```\n\n## Server\n\nThe easiest way to start using the service is by running:\n\n```\n$ ./eco\n```\n\nThat will start the server on port `8080`. The port can be configured by using the `-p` option:\n\n```\n$ ./eco -p \u003cport\u003e\n```\n\n## Client\n\nThe purpose of the client is to provide an easy way to interact with the\nserver.\n\nYou can use it by specifying a port for the server and the text to send to the\nserver. If you run it without specifying anything it will send `PING` to\nthe default server listening port.\n\n```\n$ ./client/client -s \u003cserver:port\u003e -t \u003ctext\u003e\n```\n\n# Development\n\nFirst you want to generate the stubs based on the protobuf schema. Note that\nthis requires the Go gRPC runtime and plug-in installed on your machine,\nincluding protoc in v3 set up, see grpc.io for the steps.\n\n```\n$ make build-protos\n```\n\nExecuting above command results in the auto-generated file protos/eco-schema.pb.go. Do not manually edit this file,\nor put in other words: if you add a new message or service to the schema defined in eco-schema.proto\njust run the make task again and you'll get an updated version of eco-schema.pb.go in the protos/ directory\nas a result.\n\n## Tests\n\nYou can run the tests using the following command:\n\n```\n$ make tests\n```\n\n## Why protobuf?\n\nAs part of the experiment I wanted to find a way to enforce a contract between\nthe client and the server. JSON schema is too loose in terms of enforcing type\nchecks and also slower than protobuf. For more information check the protobuf\nsite - https://developers.google.com/protocol-buffers/\n\n## TODOs\n\n- [ ] Add authentication\n- [ ] Add manifests files for different deployment backend infrastructure\n- [ ] Dockerized\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcored%2Feco","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcored%2Feco","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcored%2Feco/lists"}