72
}
73
74
>
func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer) {
service_grpc.pb.go
75
>
s.RegisterService(&TestService_ServiceDesc, srv)
76
>
}
77
78
>
func _TestService_Test_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
service_grpc.pb.go
79
>
in := new(TestRequest)
80
>
if err := dec(in); err != nil {
81
return nil, err
82
}
84
return srv.(TestServiceServer).Test(ctx, in)
85
}
87
>
Server: srv,
88
>
FullMethod: TestService_Test_FullMethodName,
89
>
}
90
>
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
91
>
return srv.(TestServiceServer).Test(ctx, req.(*TestRequest))
92
>
}
93
>
return interceptor(ctx, in, info, handler)
94
}
95