Closed ppegusii closed 9 years ago
Agree, gateway is the best place. Will change the sensor code to adhere to gateway/api.go
Do you have a running copy of the gateway-sensor code? I will take that as the base and do incremental changes to it.
Just gateway. It's in gateway/
.
How do we plan to merge our APIs? Your RegisterParams are a bit different from mine in that you are using strings and I am using ints. I wanted to stay away from strings, especially non-constants, to avoid spelling mistakes and reduce data transmitted. Also I thought that we could store all the shared struct definitions in one place to avoid circular imports and repeated code. The gateway seems best because that's the thing that needs to know about them all. What do you think of
gateway/api.go
?