https://github.com/matrix-org/dendrite fork for cross-compile for ARM
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Neil Alexander a9faa1bc44
Fix registration error when disabled
3 months ago
..
api Implement ExtraPublicRoomsProvider for p2p demos (#1180) 1 year ago
auth Top-level setup package (#1605) 8 months ago
httputil reject invalid UTF-8 (#1472) 10 months ago
jsonerror Return remote errors from FS.PerformJoin (#1164) 1 year ago
producers Rehuffle where things are in the internal package (#1122) 1 year ago
routing Fix registration error when disabled 3 months ago
threepid Top-level setup package (#1605) 8 months ago
userutil use go module for dependencies (#594) 2 years ago
README.md use go module for dependencies (#594) 2 years ago
clientapi.go Gate peeking behind msc flags (#1731) 6 months ago

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.