0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-06-26 16:28:19 +02:00
dendrite/clientapi
kegsay 5dd203fde3
Listen for /v3 on CSAPI (#2197)
* Listen for /v3 on CSAPI

* Docs

* More docs

* Rename path variable to fix key backup tests

* Update routing.go

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2022-02-17 17:38:22 +00:00
..
api
auth Support for m.login.token (#2014) 2022-02-10 10:27:26 +00:00
httputil Support for m.login.token (#2014) 2022-02-10 10:27:26 +00:00
jsonerror
producers Tweak some logging (#2130) 2022-01-31 10:48:28 +00:00
routing Listen for /v3 on CSAPI (#2197) 2022-02-17 17:38:22 +00:00
threepid Roomserver/federation input refactor (#2104) 2022-01-27 14:29:14 +00:00
userutil
clientapi.go Remove sarama/saramajetstream dependencies (#2138) 2022-02-04 13:08:13 +00:00
README.md

This component roughly corresponds to "Client Room Send" and "Client Sync" on the WIRING diagram. This component produces multiple binaries.

Internals

  • HTTP routing is done using gorilla/mux and the routing paths are in the routing package.

Writers

  • Each HTTP "write operation" (/createRoom, /rooms/$room_id/send/$type, etc) is contained entirely to a single file in the writers package.
  • This file contains the request and response struct definitions, as well as a Validate() bool function to validate incoming requests.
  • The entry point for each write operation is a stand-alone function as this makes testing easier. All dependencies should be injected into this function, including server keys/name, etc.