With the Internet of Things (IoT), it is predicted that the number of connected devices will reach 50 billion by 2020. Many of these devices often adopt, at application layer, mutually incompatible messaging protocols. A possible solution to this problem is to use a same messaging protocol among all devices. However, a single protocol is not always suitable for both constrained and unconstrained devices. Several solutions to the interoperability issue in the IoT have been proposed, but they neither provide transparent interoperation nor are extensible and configurable enough. Meanwhile, this paper proposes GoThings, a preliminary gateway architecture which can enable interconnectivity between different messaging protocols. GoThings is focused on extensibility, configurability and generality, in the context of IoT problems.