{"id":32476168,"url":"https://github.com/kachit/gocent-grpc","last_synced_at":"2026-05-16T15:38:37.232Z","repository":{"id":320746580,"uuid":"1083220158","full_name":"Kachit/gocent-grpc","owner":"Kachit","description":"Centrifugo gRPC golang sdk","archived":false,"fork":false,"pushed_at":"2025-10-25T16:11:01.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-25T17:28:38.587Z","etag":null,"topics":["centrifugo","go","golang","grpc","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/Kachit.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-25T15:27:33.000Z","updated_at":"2025-10-25T16:09:14.000Z","dependencies_parsed_at":"2025-10-25T17:28:43.836Z","dependency_job_id":"d3650721-648d-43a4-9791-b77bdf24d5bb","html_url":"https://github.com/Kachit/gocent-grpc","commit_stats":null,"previous_names":["kachit/gocent-grpc"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Kachit/gocent-grpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kachit%2Fgocent-grpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kachit%2Fgocent-grpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kachit%2Fgocent-grpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kachit%2Fgocent-grpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kachit","download_url":"https://codeload.github.com/Kachit/gocent-grpc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kachit%2Fgocent-grpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33108232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["centrifugo","go","golang","grpc","protobuf"],"created_at":"2025-10-26T21:50:27.255Z","updated_at":"2026-05-16T15:38:37.186Z","avatar_url":"https://github.com/Kachit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Centrifugo gRPC golang sdk\n[![Go Test](https://github.com/Kachit/gocent-grpc/actions/workflows/tests.yml/badge.svg)](https://github.com/Kachit/gocent-grpc/actions)\n[![Go Report Card](https://goreportcard.com/badge/github.com/kachit/gocent-grpc)](https://goreportcard.com/report/github.com/kachit/gocent-grpc)\n[![Go Version](https://img.shields.io/github/go-mod/go-version/Kachit/gocent-grpc)](https://go.dev/doc/go1.24)\n[![Release](https://img.shields.io/github/v/release/Kachit/gocent-grpc.svg)](https://github.com/Kachit/gocent-grpc/releases)\n[![GoDoc](https://img.shields.io/badge/go.dev-reference-brightgreen?logo=go\u0026logoColor=white\u0026style=flat)](https://pkg.go.dev/github.com/kachit/gocent-grpc)\n[![License](https://img.shields.io/github/license/Kachit/gocent-grpc)](https://github.com/Kachit/gocent-grpc/blob/master/LICENSE)\n\n## Install\n```shell\ngo get -u github.com/kachit/gocent-grpc\n```\n\n## Usage (Client)\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\n\t\"github.com/kachit/gocent-grpc/auth\"\n\tpb \"github.com/kachit/gocent-grpc/pkg\"\n\t\"google.golang.org/grpc\"\n\t\"google.golang.org/grpc/credentials/insecure\"\n)\n\nfunc main() {\n\tconn, err := grpc.NewClient(\n\t\t\"127.0.0.1:10000\",\n\t\tgrpc.WithTransportCredentials(insecure.NewCredentials()),\n\t\tgrpc.WithPerRPCCredentials(auth.KeyAuth{Key: \"qwerty\"}),\n\t)\n\tif err != nil {\n\t\tlog.Fatalln(err)\n\t}\n\t\n\tdefer conn.Close()\n\n\tctx, cancel := context.WithCancel(context.Background())\n\tdefer cancel()\n\n\treq := \u0026pb.PresenceRequest{Channel: \"channel-name\"}\n\t//\n\tclient := pb.NewCentrifugoApiClient(conn)\n\t\n\tresult, err := client.Presence(ctx, req)\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\t\n\tfmt.Println(result)\n}\n```\n\n## Proto\nhttps://raw.githubusercontent.com/centrifugal/centrifugo/master/internal/apiproto/api.proto\n\n## ProtoGen Golang\n```shell\nprotoc --go_out=pkg --proto_path=proto --go-grpc_out=pkg --go-grpc_opt=paths=source_relative --go_opt=paths=source_relative proto/*.proto\n```\n\n## Linters ##\n```bash\ngolangci-lint run\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkachit%2Fgocent-grpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkachit%2Fgocent-grpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkachit%2Fgocent-grpc/lists"}