Go to file
Vasiliy Tolstov f69088bd27 fallback to generate client and server
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2021-03-30 18:30:58 +03:00
.github add gh actions 2021-02-23 14:56:36 +03:00
.gitignore support proto3 optional 2021-02-25 22:11:08 +03:00
chi.go allow to generate standalone code 2021-02-25 14:44:50 +03:00
go.mod Update module google.golang.org/protobuf to v1.26.0 2021-03-19 03:24:49 +00:00
go.sum Update module google.golang.org/protobuf to v1.26.0 2021-03-19 03:24:49 +00:00
gorilla.go allow to generate standalone code 2021-02-25 14:44:50 +03:00
http.go minor changes for generator 2021-03-26 15:00:55 +03:00
LICENSE change license 2021-02-23 14:50:01 +03:00
main.go fallback to generate client and server 2021-03-30 18:30:58 +03:00
micro.go minor changes for generator 2021-03-26 15:00:55 +03:00
README.md fix readme 2021-02-23 15:02:09 +03:00
rpc.go minor changes for generator 2021-03-26 15:00:55 +03:00
util.go minor changes for generator 2021-03-26 15:00:55 +03:00
variables.go extract variables to dedicated file 2021-02-28 23:42:00 +03:00

protoc-gen-micro

protobuf plugin to generate helper code for micro framework

A generic code/script/data generator based on Protobuf.


This project is a generator plugin for the Google Protocol Buffers compiler (protoc).

Usage

$> protoc --micro_out=debug=true,components="micro|http":. input.proto
Option Default Value Accepted Values Description
debug               false       true or false if true, protoc will generate a more verbose output
components micro micro rpc http chi gorilla some values cant coexists like gorilla/chi or rpc/http, values must be concatinated with pipe symbol

Install

  • Install the go compiler and tools from https://golang.org/doc/install
  • Install protoc-gen-go: go get google.golang.org/protobuf/cmd/protoc-gen-go
  • Install protoc-gen-micro: go get github.com/unistack-org/protoc-gen-micro/v3