{"id":18733273,"url":"https://github.com/autom8ter/goproxyrpc","last_synced_at":"2026-05-13T23:34:47.283Z","repository":{"id":57507583,"uuid":"174272206","full_name":"autom8ter/goproxyrpc","owner":"autom8ter","description":"GoProxyRPC- a highly configurable rest-to-grpc gateway/authentication server","archived":false,"fork":false,"pushed_at":"2019-04-21T03:14:24.000Z","size":2221,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-27T04:35:07.644Z","etag":null,"topics":["api","autom8ter","colemanword","gateway","golang","grpc","proxy"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/autom8ter.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":"2019-03-07T04:35:29.000Z","updated_at":"2020-08-07T06:53:46.000Z","dependencies_parsed_at":"2022-09-19T05:30:56.145Z","dependency_job_id":null,"html_url":"https://github.com/autom8ter/goproxyrpc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/autom8ter/goproxyrpc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autom8ter%2Fgoproxyrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autom8ter%2Fgoproxyrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autom8ter%2Fgoproxyrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autom8ter%2Fgoproxyrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/autom8ter","download_url":"https://codeload.github.com/autom8ter/goproxyrpc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/autom8ter%2Fgoproxyrpc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33004388,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: 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":["api","autom8ter","colemanword","gateway","golang","grpc","proxy"],"created_at":"2024-11-07T15:09:14.330Z","updated_at":"2026-05-13T23:34:47.264Z","avatar_url":"https://github.com/autom8ter.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoProxyRPC\n\n# Overview\n\n## Config (./config.yaml)\n\n### Example:\n```yaml\njwt_key: \"supersecret-jwt-signing key\"\nendpoint: \"localhost:3000\"\ncors:\n  allow-origin:\n  allow-credentials:\n  allow-methods:\n  allow-headers:\nproxy:\n  port: 8080\n  api-prefix: \"/\"\n```\n\n## Registering a Grpc Gaterway Service\n\nfunction signature: `func(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)`\n\n```go\n//Eazy Peazy with Golang first class functions\nfunc RegisterFunc() goproxyrpc.RegisterFunc {\n\treturn func(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {\n\t\treturn echopb.RegisterEchoServiceHandlerFromEndpoint(ctx, mux, endpoint, opts)\n\t\t//^^^generated from grpc gateway plugin\t\n    }\n}\n```\n\n\n## Starting the GoProxyRPC server\nDials the endpoint in your config:\n\n```go\n\nfunc main() {\n\tctx := context.Background()\n\tgoproxyrpc.New(ctx, \u0026goproxyrpc.Config{\n\t\tEnvPrefix:    \"ECHO\",\n\t\tDialOptions:  []grpc.DialOption{grpc.WithInsecure()},\n\t\tRegisterFunc: RegisterFunc(),\n\t}).ListenServe(ctx)\n}\n\n```\n\n## Curl the Proxy Server (pkg/testing/echo)\n\n```text\n#!/usr/bin/env bash\n\ncurl --header \"Content-Type: application/json\"   --request POST   --data '{\"say\":\"hello\"}'   http://localhost:8080/v1/echo\n```\n### Response\n\n`{\"say\":\"echoed: hello\"}`\n\n## Usage\n\n## Usage\n\n#### type Config\n\n```go\ntype Config struct {\n\tEnvPrefix    string\n\tDialOptions  []grpc.DialOption\n\tRegisterFunc RegisterFunc\n}\n```\n\nConfig holds the necessary non-config file configurations needed to create a\nProxy\n\n#### type Proxy\n\n```go\ntype Proxy struct {\n\thttp.Handler\n}\n```\n\nProxy is a REST-gRPC reverse proxy server\n\n#### func  NewProxy\n\n```go\nfunc NewProxy(ctx context.Context, cfg *Config) *Proxy\n```\nNewProxy creates a new REST-gRPC proxy server. If a jwt_key is found in your\nconfig file, the endpoint will be reject all requests that dont provide a valid\nbearer token.\n\n#### type RegisterFunc\n\n```go\ntype RegisterFunc func(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)\n```\n\nRegisterFunc registers a grpc endpoint from the generated RegisterfromEndpoint\nfunction from the grpc-gateway protoc plugin\n\n#### func  NewRegisterFunc\n\n```go\nfunc NewRegisterFunc(fn func(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)) RegisterFunc\n```\nNewRegisterFunc is a helper to create a RegisterFunc\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautom8ter%2Fgoproxyrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautom8ter%2Fgoproxyrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautom8ter%2Fgoproxyrpc/lists"}