dendrite/roomserver/internal
Kegsay 002fe05a20
Add PerformInvite and refactor how errors get handled (#1158)
* Add PerformInvite and refactor how errors get handled

- Rename `JoinError` to `PerformError`
- Remove `error` from the API function signature entirely. This forces
  errors to be bundled into `PerformError` which makes it easier for callers
  to detect and handle errors. On network errors, HTTP clients will make a
  `PerformError`.

* Unbreak everything; thanks Go!

* Send back JSONResponse according to the PerformError

* Update federation invite code too
2020-06-24 15:06:14 +01:00
..
alias.go Consolidation of roomserver APIs (#994) 2020-05-01 10:48:17 +01:00
api.go More flexible caching (#1101) 2020-06-05 16:42:01 +01:00
input.go Add PerformInvite and refactor how errors get handled (#1158) 2020-06-24 15:06:14 +01:00
input_authevents.go Consolidation of roomserver APIs (#994) 2020-05-01 10:48:17 +01:00
input_authevents_test.go Consolidation of roomserver APIs (#994) 2020-05-01 10:48:17 +01:00
input_events.go Add PerformInvite and refactor how errors get handled (#1158) 2020-06-24 15:06:14 +01:00
input_latest_events.go Rehuffle where things are in the internal package (#1122) 2020-06-12 14:55:57 +01:00
input_membership.go Use memberships to determine whether to reset latest events/state on room join (#1047) 2020-05-20 18:03:06 +01:00
perform_backfill.go Roomserver API changes (#1118) 2020-06-11 19:50:40 +01:00
perform_invite.go Add PerformInvite and refactor how errors get handled (#1158) 2020-06-24 15:06:14 +01:00
perform_join.go Add PerformInvite and refactor how errors get handled (#1158) 2020-06-24 15:06:14 +01:00
perform_leave.go Rehuffle where things are in the internal package (#1122) 2020-06-12 14:55:57 +01:00
query.go Minor perf/debugging improvements (#1121) 2020-06-12 15:11:33 +01:00
query_test.go Fix #897 and shuffle directory around (#1054) 2020-05-21 14:40:13 +01:00