()
| 95 | } |
| 96 | |
| 97 | func main() { |
| 98 | flag.Parse() |
| 99 | |
| 100 | conn, err := grpc.NewClient(*addr, grpc.WithTransportCredentials(insecure.NewCredentials())) |
| 101 | if err != nil { |
| 102 | log.Fatalf("grpc.NewClient(%q): %v", *addr, err) |
| 103 | } |
| 104 | defer conn.Close() |
| 105 | |
| 106 | ec := pb.NewEchoClient(conn) |
| 107 | |
| 108 | ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second) |
| 109 | defer cancel() |
| 110 | |
| 111 | callUnaryEcho(ctx, ec) |
| 112 | |
| 113 | callBidiStreamingEcho(ctx, ec) |
| 114 | } |
nothing calls this directly
no test coverage detected