-
Notifications
You must be signed in to change notification settings - Fork 75
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: morvencao <[email protected]>
- Loading branch information
Showing
2 changed files
with
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# CloudEvent gRPC Protobuf Definitions | ||
|
||
## Overview | ||
|
||
This repository includes the protobuf message and RPC method definitions for CloudEvent gRPC service, along with the corresponding Go code generated from these definitions. | ||
|
||
## Getting Started | ||
|
||
### Prerequisites | ||
|
||
Make sure you have the following tools installed: | ||
|
||
- [Protocol Compiler (protoc)](https://grpc.io/docs/protoc-installation/) | ||
- Go plugins for the protocol compiler: | ||
|
||
```bash | ||
$ go install google.golang.org/protobuf/cmd/protoc-gen-go | ||
$ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc | ||
``` | ||
|
||
### Updating CloudEvent gRPC Service | ||
|
||
1. Modify the `*.proto` files to reflect your desired changes. | ||
2. Run the following command to update the generated code: | ||
|
||
```bash | ||
go generate | ||
``` | ||
|
||
This step is crucial to ensure that your changes are applied to both the gRPC server and client stub. |
4 changes: 4 additions & 0 deletions
4
cloudevents/generic/options/grpc/protobuf/v1/cloudevent.proto
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