MCPcopy Create free account

hub / github.com/daodst/chat / functions

Functions3,776 in github.com/daodst/chat

↓ 2 callersMethodSelectRoomIDsWithAnyMembership
SelectRoomIDsWithAnyMembership returns a map of all memberships for the given user.
syncapi/storage/tables/interface.go:110
↓ 2 callersMethodSelectRoomNID
( ctx context.Context, txn *sql.Tx, roomID string, )
roomserver/storage/postgres/rooms_table.go:163
↓ 2 callersMethodSelectRoomReceiptsAfter
(ctx context.Context, roomIDs []string, streamPos types.StreamPosition)
syncapi/storage/tables/interface.go:180
↓ 2 callersMethodSelectStateInRange
(ctx context.Context, txn *sql.Tx, r types.Range, stateFilter *gomatrixserverlib.StateFilter, roomIDs []string
syncapi/storage/tables/interface.go:54
↓ 2 callersMethodSelectThumbnail
( ctx context.Context, txn *sql.Tx, mediaID types.MediaID, mediaOrigin gomatrixserverlib.ServerName,
mediaapi/storage/tables/interface.go:27
↓ 2 callersFunctionSendInputRoomEvents
SendInputRoomEvents to the roomserver.
roomserver/api/wrapper.go:84
↓ 2 callersFunctionSendJoin
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: noli
federationapi/routing/join.go:180
↓ 2 callersFunctionSendLeave
SendLeave implements the /send_leave API
federationapi/routing/leave.go:121
↓ 2 callersMethodSendReadUpdate
SendData sends account data to the user API server
syncapi/producers/userapi_readupdate.go:33
↓ 2 callersFunctionSendRedaction
( req *http.Request, device *userapi.Device, roomID, eventID string, cfg *config.ClientAPI, rsAPI roomserv
clientapi/routing/redaction.go:41
↓ 2 callersFunctionSendToDevice
SendToDevice handles PUT /_matrix/client/r0/sendToDevice/{eventType}/{txnId} sends the device events to the syncapi & federationsender
clientapi/routing/sendtodevice.go:29
↓ 2 callersMethodSendToDevice
( ctx context.Context, sender, userID, deviceID, eventType string, message interface{}, )
clientapi/producers/syncapi.go:62
↓ 2 callersMethodSetIsStub
(isStub bool)
roomserver/types/types.go:308
↓ 2 callersFunctionSetReceipt
(req *http.Request, syncProducer *producers.SyncAPIProducer, device *userapi.Device, roomID, receiptType, even
clientapi/routing/receipt.go:30
↓ 2 callersMethodSetRoomAlias
Save a given room alias with the room ID it refers to. Returns an error if there was a problem talking to the database.
roomserver/storage/interface.go:108
↓ 2 callersMethodSetState
Set the state at an event. FIXME TODO: "at"
roomserver/storage/interface.go:90
↓ 2 callersMethodSetStateSnapshotNID
(nid StateSnapshotNID)
roomserver/types/types.go:302
↓ 2 callersMethodSetWriteDeadline
(t time.Time)
cmd/dendrite-demo-pinecone/conn/ws.go:93
↓ 2 callersMethodShutdownDendrite
()
setup/process/process.go:41
↓ 2 callersMethodSnapshotNIDFromEventID
(ctx context.Context, eventID string)
roomserver/state/state.go:39
↓ 2 callersMethodStaleDeviceLists
StaleDeviceLists returns a list of user IDs ending with the domains provided who have stale device lists. If no domains are given, all user IDs with s
keyserver/internal/device_list_update.go:104
↓ 2 callersMethodStart
Start consuming typing events.
syncapi/consumers/presence.go:76
↓ 2 callersMethodStateBeforeEvent
(ctx context.Context, roomVer gomatrixserverlib.RoomVersion, event *gomatrixserverlib.HeaderedEvent, eventID
roomserver/internal/perform/perform_backfill.go:361
↓ 2 callersMethodStateEntries
(ctx context.Context, stateBlockNIDs []types.StateBlockNID)
roomserver/state/state.go:38
↓ 2 callersMethodStoreRemoteDeviceKeys
StoreRemoteDeviceKeys persists the given keys. Keys with the same user ID and device ID will be replaced. An empty KeyJSON removes the key for this (u
keyserver/internal/device_list_update.go:112
↓ 2 callersMethodStreamToTopologicalPosition
(ctx context.Context, roomID string, streamPos types.StreamPosition, backwardOrdering bool)
syncapi/storage/interface.go:160
↓ 2 callersMethodString
()
syncapi/types/types.go:121
↓ 2 callersMethodString
()
syncapi/types/types.go:227
↓ 2 callersMethodSubscribe
Subscribe implements accounts.Backend, creating an async subscription to receive notifications on the addition or removal of smart card wallets.
appservice/scwallet/hub.go:266
↓ 2 callersMethodSuccessCount
SuccessCount returns the number of successful requests. This is usually useful in constructing transaction IDs.
federationapi/statistics/statistics.go:178
↓ 2 callersMethodUpdateAllMediaFlowInfo
()
new_feature/media_manage/media_manager.go:71
↓ 2 callersMethodUpdateChildMetadata
UpdateChildMetadata persists the children_count and children_hash from this event if and only if the count is greater than what was previously there.
setup/mscs/msc2836/storage.go:38
↓ 2 callersMethodUpdateEventState
( ctx context.Context, txn *sql.Tx, eventNID types.EventNID, stateNID types.StateSnapshotNID, )
roomserver/storage/sqlite3/events_table.go:354
↓ 2 callersMethodUpdateInviteRetired
( ctx context.Context, txn *sql.Tx, roomNID types.RoomNID, targetUserNID types.EventStateKeyNID, )
roomserver/storage/sqlite3/invite_table.go:111
↓ 2 callersMethodUpdateLastSeen
(appid uint32, topic string, uid t.Uid, tag string, when time.Time)
server/store/adapter/adapter.go:41
↓ 2 callersMethodUpdateRoom
(ctx context.Context, roomID string, addHosts []types.JoinedHost, removeHosts []string, purgeRoomFirst bool)
federationapi/storage/interface.go:29
↓ 2 callersFunctionUploadKeys
(req *http.Request, keyAPI api.ClientKeyAPI, device *userapi.Device)
clientapi/routing/keys.go:34
↓ 2 callersMethodUpsertKey
UpsertKey updates or inserts a (server_name, key_id) tuple, pointing it via NotaryID at the the response which has the longest valid_until_ts `newNota
federationapi/storage/tables/interface.go:103
↓ 2 callersMethodUserIDExists
Check whether a user ID exists within any application service namespaces
appservice/api/query.go:39
↓ 2 callersMethodValidate
Validate validates the uploadRequest fields
mediaapi/routing/upload.go:247
↓ 2 callersFunctionValidateRule
ValidateRule checks the rule for errors. These follow from Sytests and the specification.
internal/pushrules/validate.go:10
↓ 2 callersMethodWaitForComponentsToFinish
()
setup/process/process.go:49
↓ 2 callersMethodWiring
()
setup/config/config.go:327
↓ 2 callersMethodWithStreamID
WithStreamID returns a copy of this device message with the given stream ID
keyserver/api/api.go:143
↓ 2 callersMethod_removeEmptyUserStreams
_removeEmptyUserStreams iterates through the user stream map and removes any that have been empty for a certain amount of time. This is a crude way of
syncapi/notifier/notifier.go:522
↓ 2 callersMethod_sharedUsers
(userID string)
syncapi/notifier/notifier.go:262
↓ 2 callersMethod_wakeupUserDevice
_wakeupUserDevice will wake up the sync stream for a specific user device. Other device streams will be left alone. nolint:unused
syncapi/notifier/notifier.go:412
↓ 2 callersMethodaddChildren
addChildren adds an event's children to the to walk data structure
setup/mscs/msc2836/msc2836.go:803
↓ 2 callersMethodaddDeviceToDelete
(sessionID, deviceID string)
clientapi/routing/register.go:173
↓ 2 callersMethodaddFakeEvents
Adds multiple events at once, each entry in the map is an eventID and set of auth events that are converted to an event and added.
roomserver/internal/query/query_test.go:71
↓ 2 callersMethodaddIgnoredUsersToFilter
addIgnoredUsersToFilter adds ignored users to the eventfilter and the syncreq itself for further use in streams.
syncapi/streams/stream_pdu.go:562
↓ 2 callersMethodaddParams
addParams adds a registerRequest to a sessionID and starts a timer to delete that registerRequest
clientapi/routing/register.go:98
↓ 2 callersMethodaddRoomSummary
(ctx context.Context, jr *types.JoinResponse, roomID, userID string, latestPosition types.StreamPosition)
syncapi/streams/stream_pdu.go:346
↓ 2 callersMethodaddState
( ctx context.Context, txn *sql.Tx, roomNID types.RoomNID, stateBlockNIDs []types.StateBlockNID, state
roomserver/storage/shared/storage.go:183
↓ 2 callersFunctionappendExclusiveNamespaceRegexs
appendExclusiveNamespaceRegexs takes a slice of strings and a slice of namespaces and will append the regexes of only the exclusive namespaces into th
setup/config/config_appservice.go:270
↓ 2 callersFunctionassertInputRoomEvents
* func fromStateTuples(tuples []gomatrixserverlib.StateKeyTuple, omitTuples []gomatrixserverlib.StateKeyTuple) (result []*gomatrixserverlib.HeaderedE
federationapi/routing/send_test.go:242
↓ 2 callersMethodassignRoomNID
( ctx context.Context, roomID string, roomVersion gomatrixserverlib.RoomVersion, )
roomserver/storage/shared/storage.go:751
↓ 2 callersMethodauthorised
authorised returns true iff the user is joined this room or the room is world_readable
setup/mscs/msc2946/msc2946.go:475
↓ 2 callersMethodbackfill
backfill performs a backfill request over the federation on another homeserver in the room. See: https://matrix.org/docs/spec/server_server/latest#get
syncapi/routing/messages.go:565
↓ 2 callersMethodbackfillViaFederation
(ctx context.Context, req *api.PerformBackfillRequest, res *api.PerformBackfillResponse)
roomserver/internal/perform/perform_backfill.go:105
↓ 2 callersMethodbetterThan
(b thumbnailFitness, desiredCrop bool)
mediaapi/thumbnailer/thumbnailer.go:204
↓ 2 callersFunctionboolToInt
(b bool)
mediaapi/thumbnailer/thumbnailer.go:197
↓ 2 callersMethodbroadcastMediaMetadata
broadcastMediaMetadata broadcasts the media metadata and error response to waiting goroutines Only the owner of the activeRemoteRequestResult for this
mediaapi/routing/download.go:602
↓ 2 callersFunctionbuildEvent
( ctx context.Context, db storage.Database, cfg *config.Global, builder *gomatrixserverlib.EventBuilder, )
roomserver/internal/perform/perform_join.go:385
↓ 2 callersFunctionbuildMembershipEvent
buildMembershipEvent uses a builder for a m.room.member invite event derived from a third-party invite to auth and build the said event. Returns the s
federationapi/routing/threepid.go:277
↓ 2 callersFunctionbuildMembershipEvents
( ctx context.Context, roomIDs []string, newProfile authtypes.Profile, userID string, cfg *config.Client
clientapi/routing/profile.go:586
↓ 2 callersMethodbulkSelectEventNID
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/postgres/events_table.go:481
↓ 2 callersMethodbulkSelectEventNID
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:524
↓ 2 callersFunctioncalcThumbnailFitness
(size types.ThumbnailSize, metadata *types.MediaMetadata, desired types.ThumbnailSize)
mediaapi/thumbnailer/thumbnailer.go:173
↓ 2 callersMethodcalculateStateAfterManyEvents
( ctx context.Context, roomVersion gomatrixserverlib.RoomVersion, prevStates []types.StateAtEvent, )
roomserver/state/state.go:709
↓ 2 callersMethodcancel
cancel will interrupt the currently active backoff.
statistics/statistics.go:82
↓ 2 callersMethodcancel
cancel will interrupt the currently active backoff.
federationapi/statistics/statistics.go:82
↓ 2 callersMethodch
()
syncapi/notifier/userstream.go:121
↓ 2 callersFunctioncheckFileHookParams
File type hooks should be provided a path to a directory to store log files
internal/log.go:111
↓ 2 callersFunctioncheckRecaptchaEnabled
checkRecaptchaEnabled creates an error response if recaptcha is not usable on homeserver.
clientapi/routing/auth_fallback.go:183
↓ 2 callersMethodchildrenForParent
childrenForParent returns the children events for this event ID, honouring the direction: up|down flags meaning this can actually be returning the par
setup/mscs/msc2836/msc2836.go:854
↓ 2 callersMethodcleanPresence
(db storage.Presence, cleanupTime time.Duration)
syncapi/sync/requestpool.go:113
↓ 2 callersMethodcloseWS
()
server/session.go:118
↓ 2 callersFunctioncompress
From https://gist.github.com/mimoo/25fc9716e0f1353791f5908f94d6e726 Modified to strip off top-level when compressing
cmd/dendrite-upgrade-tests/tar.go:14
↓ 2 callersFunctionconditionMatches
(cond *Condition, event *gomatrixserverlib.Event, ec EvaluationContext)
internal/pushrules/evaluate.go:120
↓ 2 callersMethodcontains
Check whether a tuple is in the list. Assumes that the list is sorted.
roomserver/types/types.go:109
↓ 2 callersFunctioncreateEventDB
()
roomserver/internal/query/query_test.go:32
↓ 2 callersFunctioncreateRoom
createRoom implements /createRoom nolint: gocyclo
clientapi/routing/createroom.go:182
↓ 2 callersFunctioncreateThumbnail
createThumbnail checks if the thumbnail exists, and if not, generates it Thumbnail generation is only done once for each non-existing thumbnail.
mediaapi/thumbnailer/thumbnailer_bimg.go:104
↓ 2 callersFunctioncreateThumbnail
createThumbnail checks if the thumbnail exists, and if not, generates it Thumbnail generation is only done once for each non-existing thumbnail.
mediaapi/thumbnailer/thumbnailer_nfnt.go:142
↓ 2 callersFunctioncreateTransport
(s *pineconeSessions.Sessions)
cmd/dendrite-demo-pinecone/conn/client.go:69
↓ 2 callersFunctiondestroyContainer
(dockerClient *client.Client, containerID string)
cmd/dendrite-upgrade-tests/main.go:400
↓ 2 callersMethoddeviceListUpdate
(userID string, deviceIDs []string)
userapi/internal/api.go:205
↓ 2 callersMethoddispatch
Message received, dispatch
server/session.go:150
↓ 2 callersMethoddoUpload
( ctx context.Context, reqReader io.Reader, cfg *config.MediaAPI, db storage.Database, activeThumbna
mediaapi/routing/upload.go:127
↓ 2 callersMethodeventNIDs
( ctx context.Context, txn *sql.Tx, eventIDs []string, filter UnsentFilter, )
roomserver/storage/shared/storage.go:250
↓ 2 callersMethodeventStateKeyNIDs
( ctx context.Context, txn *sql.Tx, eventStateKeys []string, )
roomserver/storage/shared/storage.go:101
↓ 2 callersMethodeventTypeNIDs
( ctx context.Context, txn *sql.Tx, eventTypes []string, )
roomserver/storage/shared/storage.go:58
↓ 2 callersFunctionextractChildMetadata
(ev *gomatrixserverlib.HeaderedEvent)
setup/mscs/msc2836/storage.go:352
↓ 2 callersFunctionfederatedAuthProvider
FederatedAuthProvider is an auth chain provider which fetches events from the server provided
federationapi/internal/perform.go:701
↓ 2 callersMethodfetchStateEvents
fetchStateEvents converts the set of event IDs into a set of events. It will fetch any which are missing from the database. Returns a map of room ID t
syncapi/storage/shared/syncserver.go:587
↓ 2 callersMethodfillServers
(servers []gomatrixserverlib.ServerName)
clientapi/routing/directory.go:36
↓ 2 callersFunctionfindDuplicateStateKeys
findDuplicateStateKeys finds the state entries where the state key tuple appears more than once in a sorted list. Returns a sorted list of those state
roomserver/state/state.go:1202
↓ 2 callersMethodgenerateMediaID
(ctx context.Context, db storage.Database)
mediaapi/routing/upload.go:100
↓ 2 callersFunctiongenerateTLSTemplate
(dnsNames []string)
test/keys.go:72
← previousnext →601–700 of 3,776, ranked by callers