Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/hellysonrp/protoc-gen-go-gw-map

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/hellysonrp/protoc-gen-go-gw-map

  • v0.0.0-20220927143122-83f67c65aaa0
  • Source
  • Go
  • Socket score

Version published
Created
Source

protoc-gen-go-gw-map

Plugin used to generate a map with the path and method of the gRPC Gateway request as key and the gRPC method full name (HTTP path of gRPC requests) as value.

It is highly based of the code of protoc-gen-go. I just got the code, stripped out any unnecessary parts, and built this plugin.

TODO

[ ] A way to make it easy to match routes with parameters.

Usage

Install it using the go install command:

go install github.com/Hellysonrp/protoc-gen-go-gw-map

Some usage examples:

protoc --plugin protoc-gen-go-gw-map --go-gw-map_out=output example.proto

protoc --plugin protoc-gen-go-gw-map --go-gw-map_out=paths=source_relative:output example.proto

If you have problems with protoc not finding the plugin in the PATH, I recommend passing the absolute path to the plugin:

protoc --plugin ${HOME}/go/bin/protoc-gen-go-gw-map --go-gw-map_out=output example.proto

protoc --plugin ${HOME}/go/bin/protoc-gen-go-gw-map --go-gw-map_out=paths=source_relative:output example.proto

FAQs

Package last updated on 27 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc