MCPcopy
hub / github.com/grpc/grpc-go / EmptyCall

Method EmptyCall

interop/xds/server/server.go:98–101  ·  view source on GitHub ↗
(ctx context.Context, _ *testpb.Empty)

Source from the content-addressed store, hash-verified

96}
97
98func (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
103func (s *testServiceImpl) UnaryCall(ctx context.Context, in *testpb.SimpleRequest) (*testpb.SimpleResponse, error) {
104 response := &testpb.SimpleResponse{ServerId: s.serverID, Hostname: s.hostname}

Callers

nothing calls this directly

Calls 2

SetHeaderFunction · 0.92
PairsFunction · 0.92

Tested by

no test coverage detected