Registry / web-framework / grpc-ecosystem-grpc-gateway-v2

grpc-ecosystem-grpc-gateway-v2

JSON →
library2.29.0gogounverified

gRPC-Gateway is a plugin of protoc that reads gRPC service definitions and generates a reverse-proxy server which translates a RESTful JSON API into gRPC.

go get github.com/grpc-ecosystem/grpc-gateway/v2
INSTALL
IMPORT
SIG · GRPC-ECOSYSTEM-GRP
G
grpc-ecosystem-grpc-gateway-v2
web-frameworkgov2.29.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

grpcgateway
github.com/grpc-ecosystem/grpc-gateway/v2

Sets up a gRPC-Gateway runtime mux for serving RESTful endpoints.

package main import ( "context" "net/http" "github.com/grpc-ecosystem/grpc-gateway/v2/runtime" "google.golang.org/grpc" ) func main() { mux := runtime.NewServeMux() opts := []grpc.DialOption{grpc.WithInsecure()} // Register your gRPC service endpoint here _ = mux _ = opts http.ListenAndServe(":8080", mux) }
Debug
Known issues
breakingBreaking changes between v1 and v2: import path changed to include /v2.
fix
Update import paths from github.com/grpc-ecosystem/grpc-gateway to github.com/grpc-ecosystem/grpc-gateway/v2.
affects: >=2.0.0
Upgrade
Version history
2.29.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
grpc-ecosystem-grpc-gateway-v2 — go get grpc-ecosystem-grpc-gateway-v2 · libregistry