- 11 3月, 2017 2 次提交
-
-
由 Kegsay 提交于
Previously, the error responses: - were not valid matrix errors (no `errcode`) - returned the `err.Error()` message which may contain sensitive information. - did not get logged (at all, let alone set the level correctly). Now the error responses: - return valid matrix errors (`M_UNKNOWN`) - return a generic "Internal Server Error" string - get logged at `ERROR` level.
-
由 Kegsay 提交于
-
- 10 3月, 2017 1 次提交
-
-
由 Kegsay 提交于
-
- 09 3月, 2017 2 次提交
-
-
由 Mark Haines 提交于
* Return the requested portions of current state in the query API * Use Unique from github.com/matrix-org/util * rewrite bulkSelectFilteredStateBlockEntries to use append for clarity * Add test for stateKeyTupleSorter * Replace current with a new StateEntryList rather than individually setting the fields
-
由 Kegsay 提交于
-
- 08 3月, 2017 3 次提交
-
-
由 Mark Haines 提交于
This should: 1) Make the input package a bit cleaner. 2) Allow use to reuse the state reading code from the query package.
-
由 Mark Haines 提交于
* Update github.com/matrix-org/util * Use Unique from github.com/matrix-org/util
-
由 Kegsay 提交于
-
- 07 3月, 2017 3 次提交
-
-
由 Kegsay 提交于
-
由 Mark Haines 提交于
* Add helper method for preparing lists of statements.
-
由 Mark Haines 提交于
* Add method for calculating the room state after a list of events * Fill out AddsState and RemovesState fields in the output event * comment on return value * Fix whitespace * Clarify the meaning of LastEventIDSent * Be more explicit on what the snapshot is * Fix comments * Comment on why we want the state after the previous events
-
- 06 3月, 2017 1 次提交
-
-
由 Mark Haines 提交于
* 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
-
- 01 3月, 2017 2 次提交
-
-
由 Mark Haines 提交于
* Add integration tests for roomserver to travis * Try setting the dist trusty to see if that helps with postgres * Pretty print the test input JSON * Add comment as to why we are using trusty
-
由 Tyler Gillies 提交于
Typo
-
- 27 2月, 2017 1 次提交
-
-
由 Mark Haines 提交于
* Track which events have been sent and the last event sent for each room * Write output events * comment that an event could be sent twice
-
- 24 2月, 2017 1 次提交
-
-
由 Kegsay 提交于
-
- 23 2月, 2017 2 次提交
-
-
由 Mark Haines 提交于
* Get the SQL working, and make it more idempotent
-
由 Mark Haines 提交于
* Marshal and Unmarshal methods for roomserver input api * Comments for why we don't json.marshal the InputRoomEvent directly * More comments * s/m.room.create/the first event/
-
- 22 2月, 2017 2 次提交
-
-
由 Mark Haines 提交于
-
由 Kegan Dougal 提交于
-
- 21 2月, 2017 7 次提交
-
-
由 Mark Haines 提交于
* Track which events are the latest events in the room.
-
由 Kegsay 提交于
Terse function names are used to make usage not stutter. For example: ```go err := error.Forbidden("you shall not pass") ``` At the moment they are all the same fundamental `MatrixError` type. This will be bad if we ever want to `switch` based on the kind of error. I'm hoping we won't ever need to introspect into errors like this: ideally these errors would be created purely for immediately being returned in an HTTP response. `MatrixError` implements the `error` interface.
-
由 Kegan Dougal 提交于
-
由 Kegsay 提交于
-
由 Kegan Dougal 提交于
-
由 Kegsay 提交于
-
由 Kegsay 提交于
-
- 20 2月, 2017 2 次提交
-
-
由 Kegan Dougal 提交于
-
由 Kegsay 提交于
* Add basic routing based on matched paths * Make /sync and /send use the right API paths
-
- 18 2月, 2017 1 次提交
-
-
由 Kegan Dougal 提交于
-
- 15 2月, 2017 2 次提交
-
-
由 Mark Haines 提交于
* Move partition offsets sql to a separate file * Move event types sql to a separate file * Move event state key sql to a separate file * Move room sql to a separate file * Move events sql to a separate file * Move event json sql to a separate file * Move state snapshot sql to a separate file * Move state block sql to a separate file
-
由 Mark Haines 提交于
* Calculate and store the state at each event * Use type aliases for numeric IDs
-
- 10 2月, 2017 5 次提交
-
-
由 Mark Haines 提交于
-
由 Mark Haines 提交于
-
由 Mark Haines 提交于
-
由 Matthew Hodgson 提交于
-
由 Mark Haines 提交于
* Check that events pass authentication checks. Record the list of events that the event passes authentication checks against.
-
- 08 2月, 2017 1 次提交
-
-
由 Mark Haines 提交于
* Storage functions for event types * Consume outlier room events
-
- 06 2月, 2017 1 次提交
-
-
由 Mark Haines 提交于
-
- 04 2月, 2017 1 次提交
-
-
由 Kegsay 提交于
Add stub clientapi webserver with readers/writers packages
-