Skip to content

Commit

Permalink
Merge pull request #4 from sysulq/feat/v2
Browse files Browse the repository at this point in the history
feat: upgrade protobuf to v2
  • Loading branch information
sysulq authored Jul 25, 2024
2 parents e342431 + f5c5956 commit 2ffc7e5
Show file tree
Hide file tree
Showing 49 changed files with 5,115 additions and 3,353 deletions.
11 changes: 10 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"request": "launch",
"mode": "auto",
"cwd": "${workspaceFolder}",
"args":["-config", "example/gateway/config.yaml"],
"env": {
"KOD_CONFIG": "${workspaceFolder}/example/gateway/config.yaml",
"KOD_NAME": "gateway"
},
"program": "./cmd/gateway"
},
{
Expand All @@ -19,6 +22,9 @@
"request": "launch",
"mode": "auto",
"cwd": "${workspaceFolder}",
"env": {
"KOD_NAME": "optionsserver"
},
"program": "./example/gateway/optionsserver"
},
{
Expand All @@ -27,6 +33,9 @@
"request": "launch",
"mode": "auto",
"cwd": "${workspaceFolder}",
"env": {
"KOD_NAME": "constructsserver"
},
"program": "./example/gateway/constructsserver"
}
],
Expand Down
2 changes: 1 addition & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ tasks:
- coverage.out
test:coverage:
cmds:
- cat coverage.out | egrep -v "kod_|.pb.go|_test.go|example/gateway|/test|main.go" > coverage.out.tmp
- cat coverage.out | egrep -v "kod_|.pb.go|_test.go|example/gateway|/test|main.go|pkg/generator" > coverage.out.tmp
- mv coverage.out.tmp coverage.out
- go tool cover -func=coverage.out
deps:
Expand Down
96 changes: 38 additions & 58 deletions api/graphql/v1/extend.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions api/graphql/v1/extend.proto
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,14 @@ extend google.protobuf.OneofOptions {
message Oneof {
// ignore the oneof
bool ignore = 1;
// name of the oneof
string name = 2;
}

// The options for the field
message Field {
// required the field is required
bool required = 1;
// name of the field
string name = 2;
// ignore the field
bool ignore = 3;
bool ignore = 2;
}

// The options for the rpc
Expand Down
Loading

0 comments on commit 2ffc7e5

Please sign in to comment.