server

package
v0.0.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL