Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Federation API support #8

Merged
merged 21 commits into from Aug 13, 2019

Conversation

@Kagamihime
Copy link
Owner

commented Aug 13, 2019

No description provided.

Kagamihime added 21 commits Jul 18, 2019
Launch the backend in two modes
This allows to launch the backend in "postgres" or "federation" mode.
Move the postgres/federation specific code
This moves the postgres/federation specific code in separate modules.
Cargo.toml: Add dependencies
Add dependencies to libraries required for the implementation of the
federation.
main.rs: Add function `key_info`
This function allows to extract the signing key from a file.
Implement `/stop` endpoint
This endpoint can be used when the observation is finished. So that
the temporary user will not stay in the room.
Add a `/stop` endpoint for the postgres mode
This adds a `/stop` endpoint in the postgres mode which just returns
a 200 HTTP response.
Add dummy implementation of `/descendants`
This endpoint answers with an empty list of events.
Cargo.toml: Add `chrono` in dependencies
This is used to make the time stamp of the server keys.
Add the `/_matrix/federation/v1/send/{txnId}` endpoint
This implements an endpoint allowing the HS federated with the backend
to send new events to it, so they can be stored until new events are
requested by the frontend application.
Complete the implementation of `/descendants` endpoint
This completes the implementation of this endpoint. It will simply
ignore the query parameters and send every events previously stored.
Add parameters for postgres mode
This allows the user to tell where the database is.

@Kagamihime Kagamihime merged commit 18f6b2c into master Aug 13, 2019

@Kagamihime Kagamihime deleted the federation branch Aug 13, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.