dendrite/src/github.com/matrix-org/dendrite/clientapi
Remi Reuvekamp 1a026f16d5 Implement /logout/all ()
Signed-off-by: Remi Reuvekamp <git@remireuvekamp.nl>
2017-10-15 11:29:47 +01:00
..
auth Implement /logout/all () 2017-10-15 11:29:47 +01:00
consumers Update vendor libraries and dendrite to s/Sirupsen/sirupsen/ () 2017-10-13 14:42:57 +01:00
events Add errcheck linter () 2017-09-20 10:59:19 +01:00
httputil Add errcheck linter () 2017-09-20 10:59:19 +01:00
jsonerror Implement shared secret registration () 2017-09-22 16:13:19 +01:00
producers Add gosimple linter () 2017-09-20 14:15:38 +01:00
routing Implement /logout/all () 2017-10-15 11:29:47 +01:00
threepid Add context to the account database () 2017-09-18 14:15:27 +01:00
README.md Create README.md 2017-03-13 15:56:26 +00:00

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.