Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/daodst/chat
/ functions
Functions
3,776 in github.com/daodst/chat
⨍
Functions
3,776
◇
Types & classes
1,032
↓ 2 callers
Function
validateApplicationServiceUsername
validateApplicationServiceUsername returns an error response if the username is invalid for an application service
clientapi/routing/register.go:301
↓ 2 callers
Function
validateRecaptcha
validateRecaptcha returns an error response if the captcha response is invalid
clientapi/routing/register.go:334
↓ 2 callers
Method
walk
()
setup/mscs/msc2946/msc2946.go:208
↓ 2 callers
Function
writeCertificate
(tlsCertPath string, derBytes []byte)
test/keys.go:98
↓ 2 callers
Function
writeHTTPMessage
writeHTTPMessage writes the given header and message to the HTTP response writer. Returns an error JSONResponse obtained through httputil.LogThenError
clientapi/routing/auth_fallback.go:199
↓ 2 callers
Function
writePrivateKey
(tlsKeyPath string, priv *rsa.PrivateKey)
test/keys.go:107
↓ 1 callers
Function
ActionsToTweaks
ActionsToTweaks converts a list of actions into a primary action kind and a tweaks map. Returns a nil map if it would have been empty.
internal/pushrules/util.go:13
↓ 1 callers
Method
AddInboundPeek
(ctx context.Context, serverName gomatrixserverlib.ServerName, roomID, peekID string, renewalInterval int64)
federationapi/storage/interface.go:64
↓ 1 callers
Method
AddInviteEvent
AddInviteEvent stores a new invite event for a user. If the invite was successfully stored this returns the stream ID it was stored at. Returns an err
syncapi/storage/interface.go:102
↓ 1 callers
Function
AddMortgage
AddMortgage implements POST /local/add/mortgage
clientapi/routing/profile.go:155
↓ 1 callers
Method
AddOutboundPeek
(ctx context.Context, serverName gomatrixserverlib.ServerName, roomID, peekID string, renewalInterval int64)
federationapi/storage/interface.go:59
↓ 1 callers
Method
AddPeek
AddPeek adds a new peek to our DB for a given room by a given user's device. Returns an error if there was a problem communicating with the database.
syncapi/storage/interface.go:108
↓ 1 callers
Function
AddTelNumbers
AddTelNumbers implements POST /local/add/telNumbers
clientapi/routing/profile.go:124
↓ 1 callers
Function
AddTmpAuth
(username, realm, password string, limit int64)
turn_server/turn_server.go:50
↓ 1 callers
Function
AddTmpAuthInfo
AddTmpAuthInfo implements: POST /voip/turnAuthTmpAdd
clientapi/routing/voip.go:142
↓ 1 callers
Function
AdminEvacuateRoom
(req *http.Request, device *userapi.Device, rsAPI roomserverAPI.ClientRoomserverAPI)
clientapi/routing/admin.go:14
↓ 1 callers
Function
AdminEvacuateUser
(req *http.Request, device *userapi.Device, rsAPI roomserverAPI.ClientRoomserverAPI)
clientapi/routing/admin.go:51
↓ 1 callers
Method
AllJoinedUsersInRoom
AllJoinedUsersInRoom returns a map of room ID to a list of all joined user IDs for a given room.
syncapi/storage/interface.go:58
↓ 1 callers
Method
AllJoinedUsersInRooms
AllJoinedUsersInRooms returns a map of room ID to a list of all joined user IDs.
syncapi/storage/interface.go:56
↓ 1 callers
Method
AllPeekingDevicesInRooms
AllPeekingDevicesInRooms returns a map of room ID to a list of all peeking devices.
syncapi/storage/interface.go:61
↓ 1 callers
Method
AppServiceURL
AppServiceURL returns a HTTP URL for where the appservice component is listening.
setup/config/config.go:486
↓ 1 callers
Method
AssociatePDUWithDestination
(ctx context.Context, transactionID gomatrixserverlib.TransactionID, serverName gomatrixserverlib.ServerName,
federationapi/storage/interface.go:41
↓ 1 callers
Function
AuthFallback
AuthFallback implements GET and POST /auth/{authType}/fallback/web?session={sessionID}
clientapi/routing/auth_fallback.go:102
↓ 1 callers
Function
Backfill
Backfill implements the /backfill federation endpoint. https://matrix.org/docs/spec/server_server/unstable.html#get-matrix-federation-v1-backfill-room
federationapi/routing/backfill.go:33
↓ 1 callers
Method
BackoffInfo
BackoffInfo returns information about the current or previous backoff. Returns the last backoffUntil time and whether the server is currently blacklis
statistics/statistics.go:162
↓ 1 callers
Function
BoolTweakOr
BoolTweakOr returns the named tweak as a boolean, and returns `def` on failure.
internal/pushrules/util.go:37
↓ 1 callers
Function
BuildEvent
BuildEvent builds a Matrix event from the builder and QueryLatestEventsAndStateResponse provided.
internal/eventutil/events.go:58
↓ 1 callers
Method
BulkInsertStateData
( ctx context.Context, txn *sql.Tx, entries types.StateEntries, )
roomserver/storage/postgres/state_block_table.go:87
↓ 1 callers
Method
BulkSelectEventNID
BulkSelectEventNIDs returns a map from string event ID to numeric event ID. If an event ID is not in the database then it is omitted from the map.
roomserver/storage/sqlite3/events_table.go:511
↓ 1 callers
Method
BulkSelectEventReference
( ctx context.Context, txn *sql.Tx, eventNIDs []types.EventNID, )
roomserver/storage/sqlite3/events_table.go:436
↓ 1 callers
Method
BulkSelectEventStateKey
( ctx context.Context, txn *sql.Tx, eventStateKeyNIDs []types.EventStateKeyNID, )
roomserver/storage/sqlite3/event_state_keys_table.go:142
↓ 1 callers
Method
BulkSelectRoomIDs
(ctx context.Context, txn *sql.Tx, roomNIDs []types.RoomNID)
roomserver/storage/postgres/rooms_table.go:247
↓ 1 callers
Method
BulkSelectServerKeys
(ctx context.Context, txn *sql.Tx, requests map[gomatrixserverlib.PublicKeyLookupRequest]gomatrixserverlib.Tim
federationapi/storage/tables/interface.go:112
↓ 1 callers
Method
BulkSelectStateAtEventAndReference
( ctx context.Context, txn *sql.Tx, eventNIDs []types.EventNID, )
roomserver/storage/sqlite3/events_table.go:384
↓ 1 callers
Method
BulkSelectStateBlockNIDs
( ctx context.Context, txn *sql.Tx, stateNIDs []types.StateSnapshotNID, )
roomserver/storage/postgres/state_snapshot_table.go:132
↓ 1 callers
Method
BulkSelectStateEventByID
bulkSelectStateEventByID lookups a list of state events by event ID. If any of the requested events are missing from the database it returns a types.M
roomserver/storage/sqlite3/events_table.go:193
↓ 1 callers
Method
BulkSelectStateForHistoryVisibility
( ctx context.Context, txn *sql.Tx, stateSnapshotNID types.StateSnapshotNID, domain string, )
roomserver/storage/postgres/state_snapshot_table.go:167
↓ 1 callers
Method
BulkSelectUnsentEventNID
BulkSelectEventNIDs returns a map from string event ID to numeric event ID only for events that haven't already been sent to the roomserver output. If
roomserver/storage/sqlite3/events_table.go:518
↓ 1 callers
Method
CacheCost
()
internal/caching/caches.go:51
↓ 1 callers
Method
CalcMediaFlowLimit
(info *MediaFlowInfo)
new_feature/media_manage/media_manager.go:104
↓ 1 callers
Method
CalculateAndStoreStateBeforeEvent
CalculateAndStoreStateBeforeEvent calculates a snapshot of the state of a room before an event. Stores the snapshot of the state in the database. Retu
roomserver/state/state.go:593
↓ 1 callers
Method
ChangeAuthCredential
ChangePassword changes user's password in "basic" authentication scheme
server/store/store.go:206
↓ 1 callers
Method
ChangePassword
(appid uint32, id t.Uid, password string)
server/store/adapter/adapter.go:27
↓ 1 callers
Function
CheckAndSave3PIDAssociation
CheckAndSave3PIDAssociation implements POST /account/3pid
clientapi/routing/threepid.go:93
↓ 1 callers
Function
CheckAvailable
(userLocal string, info InviteRes)
new_feature/blockchain_func.go:132
↓ 1 callers
Function
CheckServerAllowedToSeeEvent
( ctx context.Context, db storage.Database, info *types.RoomInfo, eventID string, serverName gomatrixserverl
roomserver/internal/helpers/helpers.go:236
↓ 1 callers
Method
ChildMetadata
ChildMetadata returns the children_count and children_hash for the event ID in question. Also returns the `explored` flag, which is set to true when M
setup/mscs/msc2836/storage.go:43
↓ 1 callers
Method
ChildMetadata
(ctx context.Context, eventID string)
setup/mscs/msc2836/storage.go:265
↓ 1 callers
Function
ClaimKeys
(req *http.Request, keyAPI api.ClientKeyAPI)
clientapi/routing/keys.go:141
↓ 1 callers
Function
ClaimOneTimeKeys
ClaimOneTimeKeys claims OTKs for users on this server. https://matrix.org/docs/spec/server_server/latest#post-matrix-federation-v1-user-keys-claim
federationapi/routing/keys.go:91
↓ 1 callers
Method
CleanEDUs
(ctx context.Context, serverName gomatrixserverlib.ServerName, receipts []*shared.Receipt)
federationapi/storage/interface.go:45
↓ 1 callers
Function
CleanExpireHistoryMsgs
(interval int64)
new_feature/clean_func.go:10
↓ 1 callers
Method
CleanMediaFlowInfo
()
new_feature/media_manage/media_manager.go:81
↓ 1 callers
Method
CleanPDUs
(ctx context.Context, serverName gomatrixserverlib.ServerName, receipts []*shared.Receipt)
federationapi/storage/interface.go:44
↓ 1 callers
Function
Context
( req *http.Request, device *userapi.Device, rsAPI roomserver.SyncRoomserverAPI, syncDB storage.Database
syncapi/routing/context.go:45
↓ 1 callers
Method
CountEventsWithAppServiceID
(ctx context.Context, appServiceID string)
appservice/storage/interface.go:26
↓ 1 callers
Method
CountOneTimeKeys
(ctx context.Context, userID, deviceID string)
keyserver/storage/tables/interface.go:29
↓ 1 callers
Method
CountStreamIDsForUser
(ctx context.Context, userID string, streamIDs []int64)
keyserver/storage/tables/interface.go:41
↓ 1 callers
Method
CreateClient
CreateClient creates a new client (normally used for media fetch requests). Should only be called once per component.
setup/base/base.go:331
↓ 1 callers
Method
CreateDb
(reset bool)
server/store/adapter/adapter.go:16
↓ 1 callers
Function
CreateEventJSONTable
(db *sql.DB)
roomserver/storage/postgres/event_json_table.go:62
↓ 1 callers
Function
CreateEventStateKeysTable
(db *sql.DB)
roomserver/storage/postgres/event_state_keys_table.go:79
↓ 1 callers
Function
CreateEventTypesTable
(db *sql.DB)
roomserver/storage/postgres/event_types_table.go:102
↓ 1 callers
Function
CreateEventsTable
(db *sql.DB)
roomserver/storage/postgres/events_table.go:158
↓ 1 callers
Method
CreateFederationClient
CreateFederationClient creates a new federation client. Should only be called once per component.
setup/base/base.go:351
↓ 1 callers
Function
CreateInvitesFrom3PIDInvites
CreateInvitesFrom3PIDInvites implements POST /_matrix/federation/v1/3pid/onbind
federationapi/routing/threepid.go:58
↓ 1 callers
Function
CreateInvitesTable
(db *sql.DB)
roomserver/storage/postgres/invite_table.go:84
↓ 1 callers
Function
CreateKeyBackupVersion
Create a new key backup. Request must contain a `keyBackupVersion`. Returns a `keyBackupVersionCreateResponse`. Implements POST /_matrix/client/r0/ro
clientapi/routing/key_backup.go:58
↓ 1 callers
Method
CreateMediaFlowInfo
CreateMediaFlowInfo get or create a MediaFlowInfo user by username
new_feature/media_manage/media_manager.go:56
↓ 1 callers
Function
CreateMembershipTable
(db *sql.DB)
roomserver/storage/postgres/membership_table.go:175
↓ 1 callers
Function
CreateOpenIDToken
CreateOpenIDToken creates a new OpenID Connect (OIDC) token that a Matrix user can supply to an OpenID Relying Party to verify their identity
clientapi/routing/openid.go:35
↓ 1 callers
Method
CreateP2P
CreateP2P creates a P2P topic by generating two user's subsciptions to each other.
server/store/store.go:261
↓ 1 callers
Function
CreatePrevEventsTable
(db *sql.DB)
roomserver/storage/postgres/previous_events_table.go:67
↓ 1 callers
Function
CreatePublishedTable
(db *sql.DB)
roomserver/storage/postgres/published_table.go:52
↓ 1 callers
Function
CreateRedactionsTable
(db *sql.DB)
roomserver/storage/postgres/redactions_table.go:62
↓ 1 callers
Function
CreateRoom
CreateRoom implements /createRoom
clientapi/routing/createroom.go:139
↓ 1 callers
Function
CreateRoomAliasesTable
(db *sql.DB)
roomserver/storage/postgres/room_aliases_table.go:64
↓ 1 callers
Function
CreateRoomsTable
(db *sql.DB)
roomserver/storage/postgres/rooms_table.go:98
↓ 1 callers
Function
CreateStateBlockTable
(db *sql.DB)
roomserver/storage/postgres/state_block_table.go:73
↓ 1 callers
Function
CreateStateSnapshotTable
(db *sql.DB)
roomserver/storage/postgres/state_snapshot_table.go:106
↓ 1 callers
Method
CrossSigningKeysDataForUser
(ctx context.Context, userID string)
keyserver/storage/interface.go:83
↓ 1 callers
Method
CurrentStateSnapshotNID
CurrentStateSnapshotNID implements types.RoomRecentEventsUpdater
roomserver/storage/shared/room_updater.go:102
↓ 1 callers
Function
Deactivate
Deactivate handles POST requests to /account/deactivate
clientapi/routing/deactivate.go:15
↓ 1 callers
Function
DeduplicateStateEntries
Deduplicate takes a set of state entries and ensures that there are no duplicate (event type, state key) tuples. If there are then we dedupe them, mak
roomserver/types/types.go:159
↓ 1 callers
Function
DefaultGlobalRuleSet
DefaultGlobalRuleSet returns the default ruleset for a given (fully qualified) MXID.
internal/pushrules/default.go:17
↓ 1 callers
Method
Defaults
()
setup/config/config_federationapi.go:69
↓ 1 callers
Method
Degraded
()
setup/process/process.go:53
↓ 1 callers
Function
DelTmpAuth
(username string)
turn_server/turn_server.go:54
↓ 1 callers
Function
DelTmpAuthInfo
DelTmpAuthInfo implements: POST /voip/turnAuthTmpDel
clientapi/routing/voip.go:206
↓ 1 callers
Method
DeleteAllBlacklist
(ctx context.Context, txn *sql.Tx)
federationapi/storage/tables/interface.go:68
↓ 1 callers
Method
DeleteAllDeviceKeys
(ctx context.Context, txn *sql.Tx, userID string)
keyserver/storage/tables/interface.go:44
↓ 1 callers
Method
DeleteBackwardExtremity
DeleteBackwardExtremity removes a backwards extremity for a room, if one existed.
syncapi/storage/tables/interface.go:146
↓ 1 callers
Method
DeleteBlacklist
(ctx context.Context, txn *sql.Tx, serverName gomatrixserverlib.ServerName)
federationapi/storage/tables/interface.go:67
↓ 1 callers
Method
DeleteCrossSigningSigsForTarget
(ctx context.Context, txn *sql.Tx, targetUserID string, targetKeyID gomatrixserverlib.KeyID)
keyserver/storage/tables/interface.go:69
↓ 1 callers
Function
DeleteDeviceById
DeleteDeviceById handles DELETE requests to /devices/{deviceId}
clientapi/routing/device.go:163
↓ 1 callers
Method
DeleteDeviceKeys
(ctx context.Context, txn *sql.Tx, userID, deviceID string)
keyserver/storage/tables/interface.go:43
↓ 1 callers
Function
DeleteDevices
DeleteDevices handles POST requests to /delete_devices
clientapi/routing/device.go:244
↓ 1 callers
Method
DeleteExpiredEDUs
(ctx context.Context, txn *sql.Tx, expiredBefore gomatrixserverlib.Timestamp)
federationapi/storage/tables/interface.go:44
↓ 1 callers
Method
DeleteInviteEvent
(ctx context.Context, txn *sql.Tx, inviteEventID string)
syncapi/storage/tables/interface.go:37
↓ 1 callers
Method
DeleteJoinedHosts
(ctx context.Context, txn *sql.Tx, eventIDs []string)
federationapi/storage/tables/interface.go:56
← previous
next →
801–900 of 3,776, ranked by callers