in src/product-catalog/genproto/oteldemo/demo_grpc.pb.go [171:187]
func _CartService_EmptyCart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EmptyCartRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(CartServiceServer).EmptyCart(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: CartService_EmptyCart_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(CartServiceServer).EmptyCart(ctx, req.(*EmptyCartRequest))
}
return interceptor(ctx, in, info, handler)
}