Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestServer ¶
type TestServer struct { pb.UnimplementedMyGreeterServer // ReceivedMetadata stores the metadata extracted from the incoming gRPC context. ReceivedMetadata metadata.MD }
TestServer implements the MyGreeterServer interface and captures incoming metadata.
func (*TestServer) SayHello ¶
func (s *TestServer) SayHello(ctx context.Context, req *pb.HelloRequest) (*pb.HelloReply, error)
SayHello implements the SayHello RPC method. It captures the incoming metadata and returns a greeting message.
Click to show internal directories.
Click to hide internal directories.