{"id":25384038,"url":"https://github.com/gomatic/service-example","last_synced_at":"2025-04-09T14:43:09.641Z","repository":{"id":57553085,"uuid":"90506603","full_name":"gomatic/service-example","owner":"gomatic","description":"gRPC+RESTful gateway client-server example.","archived":false,"fork":false,"pushed_at":"2017-05-31T01:46:59.000Z","size":30,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T07:01:58.099Z","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":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gomatic.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":"2017-05-07T03:35:56.000Z","updated_at":"2020-05-07T12:07:26.000Z","dependencies_parsed_at":"2022-09-15T19:01:02.617Z","dependency_job_id":null,"html_url":"https://github.com/gomatic/service-example","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/gomatic%2Fservice-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomatic%2Fservice-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomatic%2Fservice-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gomatic%2Fservice-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gomatic","download_url":"https://codeload.github.com/gomatic/service-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055275,"owners_count":21040151,"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":"2025-02-15T08:35:33.600Z","updated_at":"2025-04-09T14:43:09.621Z","avatar_url":"https://github.com/gomatic.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# service example\n\n[![reportcard](https://goreportcard.com/badge/github.com/gomatic/service-example)](https://goreportcard.com/report/github.com/gomatic/service-example)\n[![build](https://travis-ci.org/gomatic/service-example.svg?branch=master)](https://travis-ci.org/gomatic/service-example)\n[![godoc](https://godoc.org/github.com/gomatic/service-example?status.svg)](https://godoc.org/github.com/gomatic/service-example)\n[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)\n\n## Install\n\n    go get github.com/gomatic/service-example\n    \n## Test\n\n**Run the service**\n    \n    API_PORT=5000 service-example --debug \u003eservice-example.log 2\u003e\u00261 \u0026 service_pid=$!\n\n**Test the service**\n\n    curl -s localhost:5000/health         # The health check\n    curl -s localhost:5000/api/model.json # The OpenAPI documentation\n\ndebug routes\n\n    curl -s localhost:4999/debug/vars     # This debug route provides runtime information\n\n### RPC\n\n**Install RPC client helper**\n\n    go get github.com/gomatic/service-example/cmd/service-example-client\n\n**Call the service through the RPC using the client helper**\n\n    API_PORT=5000 service-example-client this is a great example message\n\n### Cleanup\n\n    kill ${service_pid}\n    rm service-example.log # Maybe have a look at the log before doing this.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgomatic%2Fservice-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgomatic%2Fservice-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgomatic%2Fservice-example/lists"}