{"id":20270794,"url":"https://github.com/bithavoc/hellogrpcstdin","last_synced_at":"2025-04-11T04:21:17.787Z","repository":{"id":54171545,"uuid":"141208745","full_name":"bithavoc/hellogrpcstdin","owner":"bithavoc","description":"An example of GRPC Dialing with os.Stdin and os.Stdout of a child process.","archived":false,"fork":false,"pushed_at":"2021-03-05T15:14:01.000Z","size":7,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-04-10T03:12:24.547Z","etag":null,"topics":["go","golang","grpc","plugins"],"latest_commit_sha":null,"homepage":"","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/bithavoc.png","metadata":{"files":{"readme":"Readme.md","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-07-17T00:16:28.000Z","updated_at":"2022-11-23T19:29:17.000Z","dependencies_parsed_at":"2022-08-13T08:20:11.437Z","dependency_job_id":null,"html_url":"https://github.com/bithavoc/hellogrpcstdin","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bithavoc%2Fhellogrpcstdin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bithavoc%2Fhellogrpcstdin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bithavoc%2Fhellogrpcstdin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bithavoc%2Fhellogrpcstdin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bithavoc","download_url":"https://codeload.github.com/bithavoc/hellogrpcstdin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224621623,"owners_count":17342222,"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","grpc","plugins"],"created_at":"2024-11-14T12:33:38.204Z","updated_at":"2024-11-14T12:33:38.904Z","avatar_url":"https://github.com/bithavoc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GRPC external plugin example\n\n```\ngo get github.com/bithavoc/hellogrpcstdin\n```\n\nAn example of GRPC Dialing with Stdin and Stdout of a child process.\n\n`greeter_server` launches `greeter_client` as a process and uses `os.Stdin` and `os.Stdout` to listen for GRPC requests.\n\n**Note:** You don't really need this library to implement GRPC plugins in Go, you can always use [hashicorp/go-plugin](https://github.com/hashicorp/go-plugin) which uses unix sockets.\n\n## Running Example\n\n**Compile Client(Plugin):**\n\n```shell\n(cd greeter_client; go build)\n```\n\n**Compile Server(Plugin):**\n\n```shell\n(cd greeter_server; go build)\n```\n\n**Run Server(Plugin):**\n\n```shell\n(cd greeter_server; ./greeter_server)\n```\n\nYou should see an output similar to this:\n\n```\nServer starting\naccepting, waiting for only conn\nagent process running, will ready listener\naccepting, only conn ready\naccepting, waiting for only conn\n2018/07/16 19:13:33 Server replying, check greeter_server/client.log\n```\n\n`cat greeter_server/client.log`:\n\n```\n2018/07/16 19:15:51 client starting\n2018/07/16 19:15:51 addresss \n2018/07/16 19:15:51 Greeting: Hello world from server\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbithavoc%2Fhellogrpcstdin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbithavoc%2Fhellogrpcstdin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbithavoc%2Fhellogrpcstdin/lists"}