change license

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2021-02-23 14:50:01 +03:00
parent d2ed42a8f3
commit 764fa7111d
2 changed files with 211 additions and 17 deletions

25
README.md Normal file
View File

@@ -0,0 +1,25 @@
# `protoc-gen-micro`
protobuf plugin to generate helper code for micro framework
A generic **code**/script/data generator based on [Protobuf](https://developers.google.com/protocol-buffers/).
---
This project is a generator plugin for the Google Protocol Buffers compiler (`protoc`).
## Usage
```console
$> 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
## 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`