Hi, guys.
I've recently written an authentication/authorization plugin for mosquitto, a well known open-source MQTT broker, using cgo. The basic idea was to export some Go functions to mosquitto's C plugin interface, and write all the logic in Go. It implements a bunch of backends available, and also offers the possibility to add your own using the "plugin" package.
I was hoping someone could find it useful, and also to receive ideas on any missing backend that you'd like to see implemented. Also, I'd love some criticism/feedback, as this is my first "real" open-source project. Of course, there are some "issues" I'm aware of, such as a lot of exported thing that really shouldn't be (though they are not exposed to the C code, so it isn't thaaat troublesome) and that I'll refactor soon. But if you see anything that raises a warning, seems odd or is plain wrong, please give me a heads up: I'll very much appreciate it.
Cheers!