I don’t think it’s a gun barrel, maybe a kids toy cannon. I just don’t see the essential parts like a breach plug, touch hole etc. maybe it’s the pictures, but I would go with antique toy cannon, which would explain why it had balls in it. Don’t get me wrong, still very cool!!