(ctx context.Context, _ *testpb.Empty)
| 96 | } |
| 97 | |
| 98 | func (s *testServiceImpl) EmptyCall(ctx context.Context, _ *testpb.Empty) (*testpb.Empty, error) { |
| 99 | grpc.SetHeader(ctx, metadata.Pairs("hostname", s.hostname)) |
| 100 | return &testpb.Empty{}, nil |
| 101 | } |
| 102 | |
| 103 | func (s *testServiceImpl) UnaryCall(ctx context.Context, in *testpb.SimpleRequest) (*testpb.SimpleResponse, error) { |
| 104 | response := &testpb.SimpleResponse{ServerId: s.serverID, Hostname: s.hostname} |