This repository has been archived by the owner on Nov 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
buf build proto generating
- Loading branch information
Showing
114 changed files
with
7,656 additions
and
4,683 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,37 @@ | ||
# The version of the generation template. | ||
# Required. | ||
# The only currently-valid value is v1beta1. | ||
version: v1beta1 | ||
version: v1 | ||
|
||
# The plugins to run. | ||
plugins: | ||
|
||
- name: go | ||
out: . | ||
opt: | ||
- plugins=grpc | ||
- paths=source_relative | ||
|
||
- name: govalidators | ||
out: . | ||
opt: | ||
- paths=source_relative | ||
|
||
- name: grpc-gateway | ||
out: . | ||
opt: | ||
- logtostderr=true | ||
- paths=source_relative | ||
|
||
- name: swagger | ||
out: . | ||
opt: | ||
- logtostderr=true | ||
|
||
- name: cc-gateway | ||
out: . | ||
out: . | ||
opt: | ||
- logtostderr=true | ||
- paths=source_relative | ||
|
||
- name: doc | ||
out: . | ||
opt: | ||
- markdown,doc.pb.md,source_relative | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,30 @@ | ||
# The version of the generation template. | ||
# Required. | ||
# The only currently-valid value is v1beta1. | ||
version: v1beta1 | ||
|
||
version: v1 | ||
|
||
plugins: | ||
|
||
- name: go | ||
out: . | ||
|
||
# Any options to provide to the plugin. | ||
# Optional. | ||
# Can be either a single string or list of strings. | ||
opt: | ||
- plugins=grpc | ||
- paths=source_relative | ||
|
||
# The custom path to the plugin binary, if not protoc-gen-NAME on your $PATH. | ||
#path: custom-gen-go # optional | ||
|
||
# The generation strategy to use. There are two options: | ||
# | ||
# 1. "directory" | ||
# | ||
# This will result in buf splitting the input files by directory, and making separate plugin | ||
# invocations in parallel. This is roughly the concurrent equivalent of: | ||
# | ||
# for dir in $(find . -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq); do | ||
# protoc -I . $(find "${dir}" -name '*.proto') | ||
# done | ||
# | ||
# Almost every Protobuf plugin either requires this, or works with this, | ||
# and this is the recommended and default value. | ||
# | ||
# 2. "all" | ||
# | ||
# This will result in buf making a single plugin invocation with all input files. | ||
# This is roughly the equivalent of: | ||
# | ||
# protoc -I . $(find . -name '*.proto') | ||
# | ||
# This is needed for certain plugins that expect all files to be given at once. | ||
# | ||
# Optional. If omitted, "directory" is used. Most users should not need to set this option. | ||
|
||
# - name: go-grpc | ||
# out: . | ||
# opt: | ||
# - paths=source_relative | ||
- name: govalidators | ||
out: . | ||
opt: | ||
- paths=source_relative | ||
|
||
- name: openapiv2 | ||
out: . | ||
opt: | ||
- logtostderr=true | ||
|
||
- name: grpc-gateway | ||
out: . | ||
opt: | ||
- logtostderr=true | ||
- paths=source_relative | ||
|
||
- name: cc-gateway | ||
- name: swagger | ||
out: . | ||
opt: | ||
- logtostderr=true | ||
- paths=source_relative | ||
|
||
## TODO specify doc correct out params | ||
# - name: doc | ||
# out: . | ||
# opt: | ||
# - markdown,doc.md | ||
- name: doc | ||
out: . | ||
opt: | ||
- markdown,doc.pb.md,source_relative |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
version: v1 | ||
directories: | ||
- examples | ||
- extensions | ||
- gateway | ||
- state | ||
- third_party |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: v1 | ||
lint: | ||
use: | ||
- BASIC | ||
- FILE_LOWER_SNAKE_CASE | ||
- SERVICE_SUFFIX | ||
- ENUM_VALUE_PREFIX | ||
except: | ||
- PACKAGE_DIRECTORY_MATCH | ||
|
||
breaking: | ||
use: | ||
- FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.