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

Struct server

examples/features/error_details/server/main.go:41–45  ·  view source on GitHub ↗

server is used to implement helloworld.GreeterServer.

Source from the content-addressed store, hash-verified

39
40// server is used to implement helloworld.GreeterServer.
41type server struct {
42 pb.UnimplementedGreeterServer
43 mu sync.Mutex
44 count map[string]int
45}
46
47// SayHello implements helloworld.GreeterServer
48func (s *server) SayHello(_ context.Context, in *pb.HelloRequest) (*pb.HelloReply, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected