Commit graph

9 commits

Author SHA1 Message Date
Robert Swain 042d636e34 Update github.com/matrix-org/util for request context fix for logging 2017-05-10 15:43:58 +02:00
Kegsay 2fadb9e409 Make it possible to point Riot at Dendrite () 2017-04-20 17:11:53 +01:00
Mark Haines 84682b33c9 Use Unique from github.com/matrix-org/util ()
* Update github.com/matrix-org/util

* Use Unique from github.com/matrix-org/util
2017-03-08 13:27:21 +00:00
Mark Haines 9a8a8aedcb Add a query API to the roomserver for getting the latest events in a room. ()
* Start implementing a query API for go using net/rpc

* Use a conventional JSON POST API rather than go net/rpc

net/rpc doesn't automatically handle reconnecting and we have better
logging and metrics infrastructure for monitoring HTTP apis.

* Implement the query API and add it to the integration tests

* Increase the timeout, travis seems to be a bit slow

* Clarify that state events are the things that are not returned if they are not requested

* Add utility function for converting arrays of numeric event IDs to pq Int64Arrays

* Warn people against requesting empty state keys by accident
2017-03-06 14:29:39 +00:00
Kegsay 45d1e61a9d Update to use util.JSONResponse () 2017-02-24 12:32:27 +00:00
Kegan Dougal 9e6127d12a Update util dep 2017-02-21 17:18:06 +00:00
Kegsay f1bb59d24a Use gorilla/mux to route HTTP requests ()
* Add basic routing based on matched paths
* Make /sync and /send use the right API paths
2017-02-20 15:41:29 +00:00
Kegan Dougal f87f7676bb Update matrix-org/util 2017-02-03 16:12:18 +00:00
Kegan Dougal 63d1bcd66a Add logrus, prometheus client and matrix-org/util 2017-02-03 15:41:25 +00:00