()
| 45 | } |
| 46 | |
| 47 | func main() { |
| 48 | flag.Parse() |
| 49 | |
| 50 | // Create alts based credential. |
| 51 | altsTC := alts.NewClientCreds(alts.DefaultClientOptions()) |
| 52 | |
| 53 | // Set up a connection to the server. |
| 54 | conn, err := grpc.NewClient(*addr, grpc.WithTransportCredentials(altsTC)) |
| 55 | if err != nil { |
| 56 | log.Fatalf("did not connect: %v", err) |
| 57 | } |
| 58 | defer conn.Close() |
| 59 | |
| 60 | // Make an echo client and send an RPC. |
| 61 | rgc := ecpb.NewEchoClient(conn) |
| 62 | callUnaryEcho(rgc, "hello world") |
| 63 | } |
nothing calls this directly
no test coverage detected