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

# Functions

AddMortgage implements POST /local/add/mortgage.
AddTelNumbers implements POST /local/add/telNumbers.
POST /voip/turnAuthTmpAdd.
No description provided by the author
No description provided by the author
AuthFallback implements GET and POST /auth/{authType}/fallback/web?session={sessionID}.
CheckAndSave3PIDAssociation implements POST /account/3pid.
No description provided by the author
Create a new key backup.
CreateOpenIDToken creates a new OpenID Connect (OIDC) token that a Matrix user can supply to an OpenID Relying Party to verify their identity.
CreateRoom implements /createRoom.
Deactivate handles POST requests to /account/deactivate.
DeleteDeviceById handles DELETE requests to /devices/{deviceId}.
DeleteDevices handles POST requests to /delete_devices.
Delete a version of key backup.
No description provided by the author
DeleteTag implements DELETE /_matrix/client/r0/user/{userID}/rooms/{roomID}/tags/{tag} Delete functionality works by obtaining the saved tags, removing the intended tag from the "map" and then saving the new "map" in the DB.
POST /voip/turnAuthTmpDel.
DirectoryRoom looks up a room alias.
Forget3PID implements POST /account/3pid/delete.
GetAccountData implements GET /user/{userId}/[rooms/{roomid}/]account_data/{type} .
GetAdminWhois implements GET /admin/whois/{userId}.
GetAliases implements GET /_matrix/client/r0/rooms/{roomId}/aliases.
No description provided by the author
GetAssociated3PIDs implements GET /account/3pid.
GetAvatarURL implements GET /profile/{userID}/avatar_url.
Get keys from a given backup version.
GetCapabilities returns information about the server's supported feature set and other relevant capabilities to an authenticated user.
GetDeviceByID handles /devices/{deviceID}.
GetDevicesByLocalpart handles /devices.
GetDisplayName implements GET /profile/{userID}/displayname.
GetEvent implements GET /_matrix/client/r0/rooms/{roomId}/event/{eventId} https://matrix.org/docs/spec/client_server/r0.4.0.html#get-matrix-client-r0-rooms-roomid-event-eventid.
GetHostByServerNode implements GET /get/host/of/{nodeName}.
No description provided by the author
No description provided by the author
GetMemberships implements GET /rooms/{roomId}/members.
GetNotifications handles /_matrix/client/r0/notifications.
GetPostPublicRooms implements GET and POST /publicRooms.
No description provided by the author
GetProfile implements GET /profile/{userID}.
GetPushers handles /_matrix/client/r0/pushers.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetTags implements GET /_matrix/client/r0/user/{userID}/rooms/{roomID}/tags.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetVisibility implements GET /directory/list/room/{roomID}.
InsertAddressBook implements POST /local/insert/addressBook.
InsertChainData implements POST /local/insert/chainData.
InsertRelationInvite implements POST /local/insert/relationInvite.
No description provided by the author
KeyBackupVersion returns the key backup version specified.
No description provided by the author
Login implements GET and POST /login.
Logout handles POST /logout.
LogoutAll handles POST /logout/all.
Modify the auth data of a key backup.
No description provided by the author
No description provided by the author
OnIncomingStateRequest is called when a client makes a /rooms/{roomID}/state request.
OnIncomingStateTypeRequest is called when a client makes a /rooms/{roomID}/state/{type}/{statekey} request.
No description provided by the author
No description provided by the author
PostJSON performs a POST request with JSON on an internal HTTP API.
No description provided by the author
No description provided by the author
PutTag implements PUT /_matrix/client/r0/user/{userID}/rooms/{roomID}/tags/{tag} Put functionality works by getting existing data from the DB (if any), adding the tag to the "map" and saving the new "map" to the DB.
QueryAvailableUsers implements /new/query_available_users/by/locals.
No description provided by the author
Register processes a /register request.
RegisterAvailable checks if the username is already taken or invalid.
RejoinCluster .
RemoveLocalAlias implements DELETE /directory/room/{roomAlias}.
POST /account/3pid/email/requestToken POST /register/email/requestToken.
GET /voip/turnServer.
SaveAccountData implements PUT /user/{userId}/[rooms/{roomId}/]account_data/{type}.
SaveReadMarker implements POST /rooms/{roomId}/read_markers.
No description provided by the author
No description provided by the author
/rooms/{roomID}/send/{eventType} /rooms/{roomID}/send/{eventType}/{txnID} /rooms/{roomID}/state/{eventType}/{stateKey}.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SendLeaveAsRoomOwner .
No description provided by the author
SendServerNotice sends a message to a specific user.
SendToDevice handles PUT /_matrix/client/r0/sendToDevice/{eventType}/{txnId} sends the device events to the syncapi & federationsender.
SendTyping handles PUT /rooms/{roomID}/typing/{userID} sends the typing events to client API typingProducer.
No description provided by the author
SetAvatarURL implements PUT /profile/{userID}/avatar_url.
SetChatFee implements POST /local/set/chatFee.
SetDisplayName implements PUT /profile/{userID}/displayname.
SetLocalAlias implements PUT /directory/room/{roomAlias}.
No description provided by the author
SetPusher handles /_matrix/client/r0/pushers/set This endpoint allows the creation, modification and deletion of pushers for this user ID.
No description provided by the author
Due to Setup being used to call many other functions, a gocyclo nolint is applied: nolint: gocyclo.
SetVisibility implements PUT /directory/list/room/{roomID} TODO: Allow admin users to edit the room visibility.
No description provided by the author
UpdateDeviceByID handles PUT on /devices/{deviceID}.
UpgradeRoom implements /upgrade.
Upload a bunch of session keys for a given `version`.
No description provided by the author
No description provided by the author
No description provided by the author
UserIDIsWithinApplicationServiceNamespace checks to see if a given userID falls within any of the namespaces of a given Application Service.
UsernameMatchesExclusiveNamespaces will check if a given username matches any application service's exclusive users namespace.
UsernameMatchesMultipleExclusiveNamespaces will check if a given username matches more than one exclusive namespace.
No description provided by the author
Whoami implements `/account/whoami` which enables client to query their account user id.

# Structs

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