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

Method UnaryEcho

examples/features/compression/server/main.go:44–47  ·  view source on GitHub ↗
(_ context.Context, in *pb.EchoRequest)

Source from the content-addressed store, hash-verified

42}
43
44func (s *server) UnaryEcho(_ context.Context, in *pb.EchoRequest) (*pb.EchoResponse, error) {
45 fmt.Printf("UnaryEcho called with message %q\n", in.GetMessage())
46 return &pb.EchoResponse{Message: in.Message}, nil
47}
48
49func main() {
50 flag.Parse()

Callers

nothing calls this directly

Calls 2

PrintfMethod · 0.65
GetMessageMethod · 0.45

Tested by

no test coverage detected