Commits


Remove unnecessary parseAPIResponse function All this did was wrap the usual standard library JSON decode procedure.


Marshal using struct tags rather than a custom map I was excluding some struct fields so I thought I'd need to do some custom marshalling . But you don't need to do this as you can use struct tags to optionally exclude things from being put into JSON. Now there's no longer duplicate code between struct tags and keys in a map when marshalling. Handy!


Actually return permissions grante to the client Before we were just returning an empty response or something non-meaningful


Support Icinga2 hostgroups Tests of hostgroup operations are done in TestFilter


I learned how to do some generic programming New type "object" is an interface to represent an Icinga2 object. I added heaps of other stuff! On our way to 1000 lines of code!