mirror of
https://github.com/soheilhy/cmux.git
synced 2026-08-04 07:00:50 +08:00
committed by
Soheil Hassas Yeganeh
parent
ce11cfdf3a
commit
cdd3331e3e
@@ -29,6 +29,7 @@ import (
|
||||
"golang.org/x/net/websocket"
|
||||
|
||||
"github.com/soheilhy/cmux"
|
||||
"google.golang.org/grpc/examples/helloworld/helloworld"
|
||||
grpchello "google.golang.org/grpc/examples/helloworld/helloworld"
|
||||
)
|
||||
|
||||
@@ -86,7 +87,9 @@ func serveRPC(l net.Listener) {
|
||||
}
|
||||
}
|
||||
|
||||
type grpcServer struct{}
|
||||
type grpcServer struct {
|
||||
helloworld.UnimplementedGreeterServer
|
||||
}
|
||||
|
||||
func (s *grpcServer) SayHello(ctx context.Context, in *grpchello.HelloRequest) (
|
||||
*grpchello.HelloReply, error) {
|
||||
|
||||
Reference in New Issue
Block a user