(c pb.EchoClient)
| 43 | }` |
| 44 | |
| 45 | func callUnaryEcho(c pb.EchoClient) { |
| 46 | ctx, cancel := context.WithTimeout(context.Background(), time.Second) |
| 47 | defer cancel() |
| 48 | r, err := c.UnaryEcho(ctx, &pb.EchoRequest{}) |
| 49 | if err != nil { |
| 50 | fmt.Println("UnaryEcho: _, ", err) |
| 51 | } else { |
| 52 | fmt.Println("UnaryEcho: ", r.GetMessage()) |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | func main() { |
| 57 | flag.Parse() |
no test coverage detected