Skip to content

Commit

Permalink
grpcurl and grpcui commands
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmir17 committed May 15, 2024
1 parent 00b75d8 commit 612214d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions my_qustions_and_ai_answers/tonic grpc rust programming
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
I have the following tonic Rust project.
https://github.com/dreamsofcode-io/grpcalculator-rs

//grpcurl -plaintext -proto ./proto/calculator.proto \
// > -d '{"a": 2, "b": 3}' \
// > '[::1]:50051' calculator.Calculator.Add

// {
// "result": "5"
// }

// grpcui -plaintext '[::1]:50051'
// gRPC Web UI available at http://127.0.0.1:54811/

main.rs :
Copy codeuse proto::admin_server::{Admin, AdminServer};
use proto::calculator_server::{Calculator, CalculatorServer};
Expand Down

0 comments on commit 612214d

Please sign in to comment.