| 140 | } |
| 141 | |
| 142 | func _KeyValue_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 143 | in := new(DeleteRequest) |
| 144 | if err := dec(in); err != nil { |
| 145 | return nil, err |
| 146 | } |
| 147 | if interceptor == nil { |
| 148 | return srv.(KeyValueServer).Delete(ctx, in) |
| 149 | } |
| 150 | info := &grpc.UnaryServerInfo{ |
| 151 | Server: srv, |
| 152 | FullMethod: "/KeyValue/Delete", |
| 153 | } |
| 154 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 155 | return srv.(KeyValueServer).Delete(ctx, req.(*DeleteRequest)) |
| 156 | } |
| 157 | return interceptor(ctx, in, info, handler) |
| 158 | } |
| 159 | |
| 160 | var _KeyValue_serviceDesc = grpc.ServiceDesc{ |
| 161 | ServiceName: "KeyValue", |