| 1179 | } |
| 1180 | |
| 1181 | func _Gate_Push_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1182 | in := new(GatePushRequest) |
| 1183 | if err := dec(in); err != nil { |
| 1184 | return nil, err |
| 1185 | } |
| 1186 | if interceptor == nil { |
| 1187 | return srv.(GateServer).Push(ctx, in) |
| 1188 | } |
| 1189 | info := &grpc.UnaryServerInfo{ |
| 1190 | Server: srv, |
| 1191 | FullMethod: "/candy.meta.Gate/Push", |
| 1192 | } |
| 1193 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1194 | return srv.(GateServer).Push(ctx, req.(*GatePushRequest)) |
| 1195 | } |
| 1196 | return interceptor(ctx, in, info, handler) |
| 1197 | } |
| 1198 | |
| 1199 | var _Gate_serviceDesc = grpc.ServiceDesc{ |
| 1200 | ServiceName: "candy.meta.Gate", |