-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuf.gen.yaml
32 lines (32 loc) · 1.01 KB
/
buf.gen.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: v2
managed:
enabled: true
disable:
- file_option: go_package_prefix
module: buf.build/googleapis/googleapis
- file_option: go_package_prefix
module: buf.build/bufbuild/protovalidate
- file_option: go_package_prefix
module: buf.build/tbxark/options
override:
- file_option: go_package_prefix
value: github.com/TBXark/sphere/api
plugins:
- local: protoc-gen-go
out: api
opt: paths=source_relative
- local: protoc-gen-route
out: api
opt:
- paths=source_relative
- options_key=bot
- gen_file_suffix=_bot.pb.go
- request_model=github.com/TBXark/sphere/pkg/telegram;Update
- response_model=github.com/TBXark/sphere/pkg/telegram;Message
- extra_data_model=github.com/TBXark/sphere/pkg/telegram;MethodExtraData
- extra_data_constructor=github.com/TBXark/sphere/pkg/telegram;NewMethodExtraData
- local: protoc-gen-sphere
out: api
opt:
- paths=source_relative
- swagger_auth_header=// @Security ApiKeyAuth