package
0.0.0-20241025030232-2154053700bb
Repository: https://github.com/cipherblock-chat/chat.git
Documentation: pkg.go.dev

# Functions

Backfill implements the /backfill federation endpoint.
ClaimOneTimeKeys claims OTKs for users on this server.
CreateInvitesFrom3PIDInvites implements POST /_matrix/federation/v1/3pid/onbind.
No description provided by the author
ExchangeThirdPartyInvite implements PUT /_matrix/federation/v1/exchange_third_party_invite/{roomID}.
GetEvent returns the requested event.
GetEventAuth returns event auth for the roomID and eventID.
GetMissingEvents returns missing events between earliest_events & latest_events.
GetOpenIDUserInfo implements GET /_matrix/federation/v1/openid/userinfo.
GetPostPublicRooms implements GET and POST /publicRooms.
GetProfile implements GET /_matrix/federation/v1/query/profile.
GetState returns state events & auth events for the roomID, eventID.
GetStateIDs returns state event IDs & auth event IDs for the roomID, eventID.
GetUserDevices for the given user id.
InviteV1 implements /_matrix/federation/v1/invite/{roomID}/{eventID}.
InviteV2 implements /_matrix/federation/v2/invite/{roomID}/{eventID}.
LocalKeys returns the local keys for the server.
MakeFedAPI makes an http.Handler that checks matrix federation authentication.
MakeJoin implements the /make_join API.
MakeLeave implements the /make_leave API.
No description provided by the author
Peek implements the SS /peek API, handling inbound peeks.
QueryDeviceKeys returns device keys for users on this server.
No description provided by the author
RoomAliasToID converts the queried alias into a room ID and returns it.
Send implements /_matrix/federation/v1/send/{txnID}.
SendJoin implements the /send_join API The make-join send-join dance makes much more sense as a single flow so the cyclomatic complexity is high: nolint:gocyclo.
SendLeave implements the /send_leave API.
No description provided by the author
Due to Setup being used to call many other functions, a gocyclo nolint is applied: nolint: gocyclo.
UserInactive3Days .
UserInactive7Days .
Version returns the server version.

# Constants

Event failed to be processed.
Terminated the transaction.
Event was passed to the roomserver.
Event failed auth checks.
No work had to be done as we had all prev/auth events.
The event has missing auth_events we need to fetch.
The event has missing prev_events we need to call /g_m_e for.

# Structs

No description provided by the author
No description provided by the author