-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Christoph Hartmann <[email protected]>
- Loading branch information
1 parent
2d8fec6
commit bb4c736
Showing
6 changed files
with
542 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package oneof | ||
|
||
// To regenerate the protocol buffer output for this package, run `go generate` | ||
//go:generate protoc --go_out=. --go_opt=paths=source_relative --rangerrpc_out=. oneof.proto |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,22 @@ | ||
syntax = "proto3"; | ||
|
||
package oneof; | ||
option go_package = "go.mondoo.com/ranger-rpc/example/oneof"; | ||
|
||
message OneOfRequest { | ||
oneof options { | ||
string text = 1; | ||
int64 number = 2; | ||
} | ||
} | ||
|
||
message OneOfReply { | ||
oneof options { | ||
string text = 1; | ||
int64 number = 2; | ||
} | ||
} | ||
|
||
service OneOf { | ||
rpc Echo (OneOfRequest) returns (OneOfReply); | ||
} |
Oops, something went wrong.