MCPcopy Create free account

hub / github.com/daodst/chat / functions

Functions3,776 in github.com/daodst/chat

↓ 3 callersMethodStart
Start the device list updater, which will try to refresh any stale device lists.
keyserver/internal/device_list_update.go:149
↓ 3 callersMethodStoreLocalDeviceKeys
StoreLocalDeviceKeys persists the given keys. Keys with the same user ID and device ID will be replaced. An empty KeyJSON removes the key for this (us
keyserver/storage/interface.go:44
↓ 3 callersMethodStoreMediaMetadata
(ctx context.Context, mediaMetadata *types.MediaMetadata)
mediaapi/storage/interface.go:30
↓ 3 callersMethodStoreNewSendForDeviceMessage
StoreNewSendForDeviceMessage stores a new send-to-device event for a user's device.
syncapi/storage/interface.go:131
↓ 3 callersMethodStoreRoomVersion
(roomID string, roomVersion gomatrixserverlib.RoomVersion)
internal/caching/cache_roomversions.go:9
↓ 3 callersMethodStoreThumbnail
(ctx context.Context, thumbnailMetadata *types.ThumbnailMetadata)
mediaapi/storage/interface.go:36
↓ 3 callersMethodTypesAndStateKeysAsArrays
List the unique eventTypeNIDs and eventStateKeyNIDs. Assumes that the list is sorted.
roomserver/types/types.go:116
↓ 3 callersMethodUpdate
Update blocks until the update has been stored in the database. It blocks primarily for satisfying sytest, which assumes when /send 200 OKs that the d
keyserver/internal/device_list_update.go:201
↓ 3 callersFunctionUploadBackupKeys
Upload a bunch of session keys for a given `version`.
clientapi/routing/key_backup.go:196
↓ 3 callersMethodVerifyJSONs
(ctx context.Context, requests []gomatrixserverlib.VerifyJSONRequest)
test/keyring.go:28
↓ 3 callersFunctionWithTransaction
WithTransaction runs a block of code passing in an SQL transaction If the code returns an error or panics then the transactions is rolledback Otherwis
internal/sqlutil/sql.go:62
↓ 3 callersMethod_peekingDevices
(roomID string)
syncapi/notifier/notifier.go:509
↓ 3 callersFunctionabsPath
absPath returns the absolute path for a given relative or absolute path.
setup/config/config.go:447
↓ 3 callersFunctionallowedToSeeEvent
allowedToSeeEvent returns no error if the server is allowed to see this event, otherwise it returns an error response which can be sent to the client.
federationapi/routing/events.go:56
↓ 3 callersFunctionassertUnsignedChildren
(t *testing.T, ev gomatrixserverlib.ClientEvent, relType string, wantCount int, childrenEventIDs []string)
setup/mscs/msc2836/msc2836_test.go:464
↓ 3 callersFunctionbroadcastGeneration
broadcastGeneration broadcasts that thumbnail generation completed and the error to all waiting goroutines Note: This should only be called by the own
mediaapi/thumbnailer/thumbnailer.go:122
↓ 3 callersFunctionbuildMembershipEvent
( ctx context.Context, targetUserID, reason string, profileAPI userapi.ClientUserAPI, device *userapi.De
clientapi/routing/membership.go:292
↓ 3 callersFunctioncombineDeltas
combineDeltas combines two deltas into a single delta. Assumes that the order of operations is add(1), remove(1), add(2), remove(2). Removes duplicate
federationapi/consumers/roomserver.go:310
↓ 3 callersFunctioncompleteRegistration
completeRegistration runs some rudimentary checks against the submitted input, then if successful creates an account and a newly associated device We
clientapi/routing/register.go:859
↓ 3 callersMethoddeleteSession
deleteSession cleans up a given session, either because the registration completed successfully, or because a given timeout (default: 5min) was reache
clientapi/routing/register.go:114
↓ 3 callersMethoddoRequestIfNotBackingOffOrBlacklisted
( s gomatrixserverlib.ServerName, request func() (interface{}, error), )
federationapi/internal/api.go:145
↓ 3 callersFunctionemitDeviceKeyChanges
(producer KeyChangeProducer, existing, new []api.DeviceMessage, onlyUpdateDisplayName bool)
keyserver/internal/internal.go:756
↓ 3 callersMethodevents
( ctx context.Context, txn *sql.Tx, inputEventNIDs types.EventNIDs, )
roomserver/storage/shared/storage.go:462
↓ 3 callersMethodeventsFromIDs
(ctx context.Context, txn *sql.Tx, eventIDs []string, filter UnsentFilter)
roomserver/storage/shared/storage.go:306
↓ 3 callersFunctionfatalError
(t *testing.T, format string, args ...interface{})
test/db.go:38
↓ 3 callersFunctionfetchEvent
fetchEvent fetches the event without auth checks. Returns an error if the event cannot be found.
federationapi/routing/events.go:85
↓ 3 callersFunctiongenerateSendEvent
( ctx context.Context, r map[string]interface{}, device *userapi.Device, roomID, eventType string, sta
clientapi/routing/sendevent.go:271
↓ 3 callersFunctiongetHttpClient
(options ...interface{})
clientapi/routing/voip.go:227
↓ 3 callersMethodisIn
(str string)
syncapi/notifier/notifier.go:577
↓ 3 callersMethodisPrevStateKnown
(ctx context.Context, e *gomatrixserverlib.Event)
roomserver/internal/input/input_missing.go:609
↓ 3 callersFunctionjoinResponseWithRooms
(syncResponse *types.Response, userID string, roomIDs []string)
syncapi/internal/keychange_test.go:147
↓ 3 callersMethodjsonErrorResponse
(w http.ResponseWriter, res util.JSONResponse)
mediaapi/routing/download.go:147
↓ 3 callersFunctionleaveResponseWithRooms
(syncResponse *types.Response, userID string, roomIDs []string)
syncapi/internal/keychange_test.go:167
↓ 3 callersFunctionloadProfile
loadProfile lookups the profile of a given user from the database and returns it if the user is local to this server, or returns an empty profile if n
clientapi/routing/membership.go:331
↓ 3 callersMethodloadStateAtSnapshot
FIXME TODO: Remove all this - horrible dupe with roomserver/state. Can't use the original impl because of circular loops it should live in this packag
roomserver/storage/shared/storage.go:1358
↓ 3 callersMethodlookForEvent
lookForEvent returns the event for the event ID given, by trying to query remote servers if the event ID is unknown via /event_relationships.
setup/mscs/msc2836/msc2836.go:594
↓ 3 callersMethodlookupEvent
(ctx context.Context, roomVersion gomatrixserverlib.RoomVersion, _, missingEventID string, localFirst bool)
roomserver/internal/input/input_missing.go:839
↓ 3 callersMethodlookupEventWithEmptyStateKey
(typeNID types.EventTypeNID)
roomserver/internal/helpers/auth.go:159
↓ 3 callersFunctionlookupMapPath
lookupMapPath traverses a hierarchical map structure, like the one produced by json.Unmarshal, to return the leaf value. Traversing arrays/slices is n
internal/pushrules/util.go:74
↓ 3 callersMethodmakeHeaderedEvent
(ctx context.Context, evTime time.Time, userID, roomID string, event fledglingEvent)
roomserver/internal/perform/perform_upgrade.go:575
↓ 3 callersFunctionnewSessionsDict
()
clientapi/routing/register.go:133
↓ 3 callersFunctionnewUserIDSet
(cap int)
syncapi/notifier/notifier.go:550
↓ 3 callersFunctionnewUserInteractiveResponse
newUserInteractiveResponse will return a struct to be sent back to the client during registration.
clientapi/routing/register.go:252
↓ 3 callersMethodnotifyWorkers
(userID string)
keyserver/internal/device_list_update.go:294
↓ 3 callersFunctionobtainSavedTags
obtainSavedTags gets all tags scoped to a userID and roomID from the database
clientapi/routing/room_tagging.go:155
↓ 3 callersFunctionparseMsgClientMeta
(params string)
server/datamodel.go:190
↓ 3 callersFunctionparseRoomEventFilter
(req *http.Request)
syncapi/routing/context.go:216
↓ 3 callersMethodpopulateResponseWithDeviceKeysFromDatabase
( ctx context.Context, res *api.QueryKeysResponse, userID string, deviceIDs []string, )
keyserver/internal/internal.go:555
↓ 3 callersMethodprecompute
()
syncapi/notifier/notifier.go:571
↓ 3 callersFunctionputPushRules
(ctx context.Context, userID string, ruleSets *pushrules.AccountRuleSets, userAPI userapi.ClientUserAPI)
clientapi/routing/pushrules.go:278
↓ 3 callersFunctionreadKeyPEM
(path string, data []byte, enforceKeyIDFormat bool)
setup/config/config.go:455
↓ 3 callersMethodrefreshWallets
refreshWallets scans the devices attached to the machine and updates the list of wallets based on the found devices.
appservice/scwallet/hub.go:193
↓ 3 callersFunctionrequestEntityTooLargeJSONResponse
(maxFileSizeBytes config.FileSizeBytes)
mediaapi/routing/upload.go:239
↓ 3 callersFunctionrollback
(txn *sql.Tx)
roomserver/storage/shared/room_updater.go:22
↓ 3 callersMethodroomInfo
(ctx context.Context, txn *sql.Tx, roomID string)
roomserver/storage/shared/storage.go:158
↓ 3 callersFunctionsaveTagData
saveTagData saves the provided tag data into the database
clientapi/routing/room_tagging.go:182
↓ 3 callersMethodsendHeaderedEvent
( ctx context.Context, headeredEvent *gomatrixserverlib.HeaderedEvent, sendAsServer string, )
roomserver/internal/perform/perform_upgrade.go:666
↓ 3 callersFunctionsendMembership
(ctx context.Context, profileAPI userapi.ClientUserAPI, device *userapi.Device, roomID, membership, reason s
clientapi/routing/membership.go:84
↓ 3 callersMethodtopicKey
(appid uint32, name string)
server/hub.go:117
↓ 3 callersMethodupdatePresence
updatePresence sends presence updates to the SyncAPI and FederationAPI
syncapi/sync/requestpool.go:149
↓ 3 callersFunctionvalidateAction
validateAction returns issues with an Action.
internal/pushrules/validate.go:58
↓ 3 callersFunctionvalidateCondition
validateCondition returns issues with a Condition.
internal/pushrules/validate.go:73
↓ 3 callersFunctionvalidatePassword
validatePassword returns an error response if the password is invalid
clientapi/routing/register.go:317
↓ 3 callersFunctionvalidateUsername
validateUsername returns an error response if the username is invalid
clientapi/routing/register.go:279
↓ 3 callersMethodvalues
()
syncapi/notifier/notifier.go:584
↓ 3 callersMethodwakeQueueIfNeeded
wakeQueueIfNeeded will wake up the destination queue if it is not already running. If it is running but it is backing off then we will interrupt the b
federationapi/queue/destinationqueue.go:163
↓ 3 callersFunctionws_write
Writes a message with the given message type (mt) and payload.
server/wshandler.go:121
↓ 2 callersMethodAccept
Implements net.Listener
cmd/dendrite-demo-yggdrasil/yggconn/session.go:34
↓ 2 callersMethodAddCompletedStage
(sessionID, authType string)
clientapi/auth/user_interactive.go:139
↓ 2 callersMethodAddServerToBlacklist
these don't have contexts passed in as we want things to happen regardless of the request context
federationapi/storage/interface.go:54
↓ 2 callersMethodAddState
Store the room state at an event in the database
roomserver/storage/interface.go:32
↓ 2 callersMethodAddr
Implements net.Listener
cmd/dendrite-demo-yggdrasil/yggconn/session.go:44
↓ 2 callersMethodBackwardExtremitiesForRoom
BackwardExtremitiesForRoom returns a map of backwards extremity event ID to a list of its prev_events.
syncapi/storage/interface.go:120
↓ 2 callersMethodBulkSelectEventTypeNID
( ctx context.Context, txn *sql.Tx, eventTypes []string, )
roomserver/storage/sqlite3/event_types_table.go:118
↓ 2 callersMethodBulkSelectRoomNIDs
(ctx context.Context, txn *sql.Tx, roomIDs []string)
roomserver/storage/postgres/rooms_table.go:269
↓ 2 callersMethodBulkSelectStateEventByNID
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:246
↓ 2 callersMethodCalculateAndStoreStateAfterEvents
CalculateAndStoreStateAfterEvents finds the room state after the given events. Stores the resulting state in the database and returns a numeric ID for
roomserver/state/state.go:613
↓ 2 callersMethodChallenge
Challenge returns an HTTP 401 with the supported flows for authenticating
clientapi/auth/user_interactive.go:153
↓ 2 callersMethodClaimKeys
ClaimKeys based on the 3-uple of user_id, device_id and algorithm name. Returns the keys claimed. Returns no error if a key cannot be claimed or if no
keyserver/storage/interface.go:64
↓ 2 callersMethodClaimKeys
(ctx context.Context, s gomatrixserverlib.ServerName, oneTimeKeys map[string]map[string]string)
federationapi/api/api.go:94
↓ 2 callersMethodCleanSendToDeviceUpdates
CleanSendToDeviceUpdates removes all send-to-device messages BEFORE the specified from position, preventing the send-to-device table from growing inde
syncapi/storage/interface.go:134
↓ 2 callersMethodCleanTimeoutFiles
()
new_feature/media_manage/media_manager.go:122
↓ 2 callersMethodConnMaxLifetime
ConnMaxLifetime returns maximum amount of time a connection may be reused
setup/config/config_global.go:267
↓ 2 callersMethodCreate
(appid uint32, sub *types.Subscription)
server/store/store.go:328
↓ 2 callersMethodCreateEvent
Create an event in this room but do not insert it. Does not modify the room in any way (depth, fwd extremities, etc) so is thread-safe.
test/room.go:119
↓ 2 callersMethodCrossSigningKeysForUser
(ctx context.Context, userID string)
keyserver/storage/interface.go:82
↓ 2 callersMethodCurrentPosition
CurrentPosition returns the current sync position
syncapi/notifier/notifier.go:351
↓ 2 callersFunctionDecode
Decode addr
new_feature/key_func.go:59
↓ 2 callersMethodDefaults
()
setup/mscs/msc2836/msc2836.go:68
↓ 2 callersMethodDelete
()
roomserver/storage/shared/membership_updater.go:93
↓ 2 callersMethodDelete
Delete deletes a subscription
server/store/store.go:346
↓ 2 callersMethodDeleteDeviceKeys
DeleteDeviceKeys removes the device keys for a given user/device, and any accompanying cross-signing signatures relating to that device.
keyserver/storage/interface.go:60
↓ 2 callersMethodDerivedServerName
()
cmd/dendrite-demo-yggdrasil/yggconn/node.go:124
↓ 2 callersMethodDeviceKeysJSON
DeviceKeysJSON populates the KeyJSON for the given keys. If any proided `keys` have a `KeyJSON` or `StreamID` already then it will be replaced.
keyserver/internal/device_list_update.go:118
↓ 2 callersFunctionECCDecrypt
(ct []byte, prk ecies.PrivateKey)
new_feature/key_func.go:106
↓ 2 callersMethodEnabled
Enabled returns true if the given msc is enabled. Should in the form 'msc12345'.
setup/config/config_mscs.go:24
↓ 2 callersFunctionErrAuthFailed
(id, topic string, ts time.Time)
server/datamodel.go:508
↓ 2 callersMethodEventNIDs
( ctx context.Context, eventIDs []string, )
roomserver/storage/shared/storage.go:237
↓ 2 callersMethodEventStateKeyNIDs
Look up the numeric IDs for a list of string event state keys. Returns a map from string state key to numeric ID for the state key.
roomserver/storage/interface.go:53
↓ 2 callersMethodEventStateKeys
Look up the string event state keys for a list of numeric event state keys Returns an error if there was a problem talking to the database.
roomserver/storage/interface.go:85
← previousnext →401–500 of 3,776, ranked by callers