Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
22fa00199
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
22fa00199
Commits
666bf7be
Unverified
Commit
666bf7be
authored
2 years ago
by
fagongzi
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use gogoproto (#2883)
parent
ae70cfee
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pkg/pb/plan/plan.pb.go
+16088
-4306
16088 additions, 4306 deletions
pkg/pb/plan/plan.pb.go
proto/gen.sh
+7
-3
7 additions, 3 deletions
proto/gen.sh
proto/plan.proto
+5
-0
5 additions, 0 deletions
proto/plan.proto
with
16100 additions
and
4309 deletions
pkg/pb/plan/plan.pb.go
+
16088
−
4306
View file @
666bf7be
This diff is collapsed.
Click to expand it.
proto/gen.sh
+
7
−
3
View file @
666bf7be
...
...
@@ -5,8 +5,12 @@
#
set
-e
VENDOR_DIR
=
"
$PWD
/vendor"
PB_DIR
=
"
$PWD
/pkg/pb"
PROTOC_DIR
=
"
$PWD
/proto"
mkdir
-p
$PB_DIR
/plan
protoc
--proto_path
=
$PROTOC_DIR
--go_out
=
paths
=
source_relative:
$PB_DIR
/plan
$PROTOC_DIR
/plan.proto
for
file
in
`
ls
$PROTOC_DIR
/
*
.proto
`
do
dir
=
$(
basename
$file
.proto
)
mkdir
-p
$PB_DIR
/
$dir
protoc
-I
=
.:
$PROTOC_DIR
:
$VENDOR_DIR
--gogofast_out
=
paths
=
source_relative:./pkg/pb/
$dir
$file
done
\ No newline at end of file
This diff is collapsed.
Click to expand it.
proto/plan.proto
+
5
−
0
View file @
666bf7be
syntax
=
"proto3"
;
package
plan
;
import
"github.com/gogo/protobuf/gogoproto/gogo.proto"
;
option
go_package
=
"github.com/matrixorigin/matrixone/pkg/pb/plan"
;
option
(
gogoproto.sizer_all
)
=
false
;
option
(
gogoproto.protosizer_all
)
=
true
;
message
Type
{
enum
TypeId
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment