-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enable grpc plugin logging (#413)
* Enable grpc plugin logging Signed-off-by: Vladimir Lavor <[email protected]> * updated example, readme and deps Signed-off-by: Vladimir Lavor <[email protected]>
- Loading branch information
1 parent
5099d74
commit 42c7431
Showing
8 changed files
with
35 additions
and
7 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
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 |
---|---|---|
@@ -1,12 +1,18 @@ | ||
# grpc-plugin | ||
|
||
To run the `grpc-server` example, simply type in grpc-server folder: | ||
Start the `grpc-server` example typing following in the grpc-server folder: | ||
``` | ||
go run main.go deps.go [--grpc-config=<config-filepath>] | ||
go run main.go | ||
``` | ||
|
||
To run the `grpc-client` example, simply type in grpc-client folder: | ||
In order to pass custom configuration file (for example the `grpc.conf` located in the same directory), start grpc-server with following parameter: | ||
``` | ||
go run main.go deps.go | ||
go run main --grpc-config=<config-filepath> | ||
``` | ||
Note: `main.go` must be edited in this case because it makes use of the direct config injection via `grpc.UseConf` method, which overrides any provided config file. To enable it, remove method mentioned. | ||
|
||
Start the `grpc-client` exampl typing following in the grpc-client folder: | ||
``` | ||
go run main.go | ||
``` | ||
|
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 +1,2 @@ | ||
Endpoint: "0.0.0.0:9111" | ||
endpoint: "0.0.0.0:9111" | ||
extended-logging: true |
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
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