mirror of
https://github.com/TECHNOFAB11/powerproto.git
synced 2025-12-12 16:10:03 +01:00
feat(*): support perComandTimeout & variables in options
Signed-off-by: storyicon <yuanchao@bilibili.com>
This commit is contained in:
parent
7b2c0762d4
commit
15047711a9
15 changed files with 302 additions and 122 deletions
37
examples/multi-config-item/README.md
Normal file
37
examples/multi-config-item/README.md
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# Using Multi Config Items
|
||||
|
||||
This example uses two different configurations for "using-gogo" and "using-googleapis" through the "scope" field.
|
||||
|
||||
It uses the following public libraries:
|
||||
* [googleapis](https://github.com/googleapis/googleapis)
|
||||
|
||||
The following plug-ins are used:
|
||||
* [protoc-gen-go](https://google.golang.org/protobuf/cmd/protoc-gen-go)
|
||||
* [protoc-gen-go-grpc](https://google.golang.org/grpc/cmd/protoc-gen-go-grpc)
|
||||
* [protoc-gen-grpc-gateway](https://github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway)
|
||||
* [protoc-gen-gogo](https://github.com/gogo/protobuf/protoc-gen-gogo)
|
||||
|
||||
|
||||
You can compile the proto file in this directory by executing the following command:
|
||||
```
|
||||
powerproto build -r .
|
||||
```
|
||||
|
||||
Not surprisingly, you will get the following output:
|
||||
```
|
||||
➜ tree
|
||||
.
|
||||
├── README.md
|
||||
├── powerproto.yaml
|
||||
├── using-gogo
|
||||
│ ├── service.pb.go
|
||||
│ ├── service.pb.gw.go
|
||||
│ └── service.proto
|
||||
└── using-googleapis
|
||||
├── service.pb.go
|
||||
├── service.pb.gw.go
|
||||
├── service.proto
|
||||
└── service_grpc.pb.go
|
||||
|
||||
2 directories, 9 files
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue