Go to file
2023-07-30 23:34:33 +03:00
.github Bump dependabot/fetch-metadata from 1.3.5 to 1.3.6 (#68) 2023-01-31 06:49:26 +03:00
example update to micro v4 2023-05-04 00:22:05 +03:00
.gitignore some fixes 2021-10-23 23:21:10 +03:00
ast.go update to micro v4 2023-05-04 00:22:05 +03:00
chi.go replace map 2023-02-22 00:05:54 +03:00
fiealaligment.go add fieldaligment 2021-12-26 01:09:11 +03:00
go.mod generate http metadata only in case of http component 2023-07-30 23:33:22 +03:00
go.sum generate http metadata only in case of http component 2023-07-30 23:33:22 +03:00
gorilla.go replace map 2023-02-22 00:05:54 +03:00
http.go generate endpoint metadata only for http server 2023-03-15 01:10:59 +03:00
LICENSE change license 2021-02-23 14:50:01 +03:00
main.go allow to catch response headers 2022-11-15 12:53:04 +03:00
micro.go generate http metadata only in case of http component 2023-07-30 23:33:22 +03:00
openapiv3_util.go update to micro v4 2023-05-04 00:22:05 +03:00
openapiv3.go update to micro v4 2023-05-04 00:22:05 +03:00
README.md update to micro v4 2023-05-04 00:22:05 +03:00
rpc.go generate endpoint metadata only for http server 2023-03-15 01:10:59 +03:00
util.go generate http metadata only in case of http component 2023-07-30 23:33:22 +03:00
variables.go fix codec.Frame usage 2023-05-19 00:29:23 +03:00

protoc-gen-go-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 --go_micro_out=debug=true,components="micro|http":. input.proto
Option Default Value Accepted Values Description
tag_path . any local path path contains generated protobuf code that needs to be tagged
debug               false       true or false if true, protoc will generate a more verbose output
components micro micro rpc http chi gorilla client server some values can't 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 install google.golang.org/protobuf/cmd/protoc-gen-go
  • Install protoc-gen-go-micro: go install go.unistack.org/protoc-gen-go-micro/v4