Skip to content

Commit

Permalink
add grpcurl command comment
Browse files Browse the repository at this point in the history
  • Loading branch information
junqiang.zhang committed Feb 3, 2023
1 parent 3456f4a commit 6abb89c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/exmaple.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ func testMockGrpc() {

fmt.Println(c.SayHello(context.Background(), &HelloRequest{Name: "world"}))

//grpcurl -plaintext -d '{"name": "world"}' 127.0.0.1:4770 main.Greeter/SayHello

//time.Sleep(time.Second * 1000)

}

func testMockGORMV2() {
Expand Down
2 changes: 2 additions & 0 deletions example/grpc/hello.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ option go_package = "github.com/sjqzhang/gmock/example/grpc";

package main;

//grpcurl -plaintext -d '{"name": "world"}' 127.0.0.1:4770 main.Greeter/SayHello

// The greeting service definition.
service Greeter {
// Sends a greeting
Expand Down

0 comments on commit 6abb89c

Please sign in to comment.