You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/2menus/protobuf

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/2menus/protobuf

v0.0.0-20210801110919-b699bc233d8f
Source
Go
Version published
Created
Source

protobuf

How to generate files locally

# javascript
## messages
protoc menu/v2/menu.proto menu/v2/menu_api.proto image/v2/image.proto country/v2/country.proto --js_out=import_style=commonjs:./web/ --proto_path=./

## grpc
protoc menu/v2/menu_api.proto --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./web/ --proto_path=./

protoc menu/v2/menu.proto menu/v2/menu_api.proto image/v2/image.proto country/v2/country.proto --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./web/ --proto_path=./

# typescript
## messages
protoc menu/v2/menu.proto image/v2/image.proto country/v2/country.proto --js_out=import_style=typescript:./web/ --proto_path=./

## grpc
protoc menu/v2/menu_api.proto --grpc-web_out=import_style=typescript,mode=grpcwebtext:./web/ --proto_path=./

protoc menu/v2/menu.proto image/v2/image.proto country/v2/country.proto --grpc-web_out=import_style=typescript,mode=grpcwebtext:./web/ --proto_path=./

# golang
protoc -I=. --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative --proto_path=./  ./menu/v2/*.proto ./image/v2/*.proto ./country/v2/*.proto
docker build --build-arg USER_ID=$UID -t protoc:local .
docker run -it -v "$(pwd)":/app/ protoc:local

FAQs

Package last updated on 01 Aug 2021

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