protoc-gen-gmsec

command module
v0.0.0-...-916a6ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

README

protoc-gen-gmsec

gmsec protoc generate tools

install

  • 1.install protoc
  • 2.install
make install 

or

make source_install

build

  • protoc --proto_path="{proto path}" --gmsec_out=plugins=gmsec:{out path} hello.proto

  • example

protoc --proto_path="./apidoc/proto/hello/" --gmsec_out=plugins=gmsec:./rpc/ hello.proto

Documentation

Overview

protoc-gen-go is a plugin for the Google protocol buffer compiler to generate Go code. Install it by building this program and making it accessible within your PATH with the name:

protoc-gen-go

The 'go' suffix becomes part of the argument for the protocol compiler, such that it can be invoked as:

protoc --go_out=paths=source_relative:. path/to/file.proto

This generates Go bindings for the protocol buffer defined by file.proto. With that input, the output will be written to:

path/to/file.pb.go

See the README and documentation for protocol buffers to learn more:

https://developers.google.com/protocol-buffers/

Directories

Path Synopsis
plugin
gmsec
Package gengogrpc contains the gRPC code generator.
Package gengogrpc contains the gRPC code generator.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL