(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor)
| 179 | } |
| 180 | |
| 181 | func _Echo_UnaryEcho_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 182 | in := new(EchoRequest) |
| 183 | if err := dec(in); err != nil { |
| 184 | return nil, err |
| 185 | } |
| 186 | if interceptor == nil { |
| 187 | return srv.(EchoServer).UnaryEcho(ctx, in) |
| 188 | } |
| 189 | info := &grpc.UnaryServerInfo{ |
| 190 | Server: srv, |
| 191 | FullMethod: Echo_UnaryEcho_FullMethodName, |
| 192 | } |
| 193 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 194 | return srv.(EchoServer).UnaryEcho(ctx, req.(*EchoRequest)) |
| 195 | } |
| 196 | return interceptor(ctx, in, info, handler) |
| 197 | } |
| 198 | |
| 199 | func _Echo_ServerStreamingEcho_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 200 | m := new(EchoRequest) |
nothing calls this directly
no test coverage detected