Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] Breaking change to the golang client

This PR https://github.com/eclipse/paho.mqtt.golang/pull/36
more correctly abstracts the interface for the mqtt Client to allow mocking when testing applications and libraries that make use of the golang client. Part of the change is to the types of MessageHandler, ConnectionLostHandler and OnConnectHandler, the first parameter changes from a pointer to a Client struct to an an instance of a struct meeting the Client interface.
I think this is a valuable and useful change, and as we aren't 1.0 (yet, hopefully in June) I want to accept it, but figured I should give a heads up here first. If there are no objections I plan to merge the PR on Wednesday 23rd March.
 
Allan Stockdill-Mander, GCFA
Security - Project Alchemy
Phone: +44 1962 815415 (37245415 Internal)
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU


Back to the top