MCPcopy Create free account

hub / github.com/daodst/chat / functions

Functions3,776 in github.com/daodst/chat

↓ 9 callersMethodcacheAndReturn
(ev *gomatrixserverlib.Event)
roomserver/internal/input/input_missing.go:366
↓ 9 callersFunctioncheckFlowCompleted
checkFlowCompleted checks if a registration flow complies with any allowed flow dictated by the server. Order of stages does not matter. A user may co
clientapi/routing/register.go:993
↓ 8 callersMethodAddTransaction
AddTransaction adds an entry for the (accessToken, txnID) tuple in Cache. Adds to the front txnMap.
internal/transactions/transactions.go:77
↓ 8 callersMethodDelete
(sid string)
server/sessionstore.go:89
↓ 8 callersMethodLoadStateAtSnapshot
LoadStateAtSnapshot loads the full state of a room at a particular snapshot. This is typically the state before an event or the current state of a roo
roomserver/state/state.go:64
↓ 8 callersMethodPerformAccountCreation
(ctx context.Context, req *PerformAccountCreationRequest, res *PerformAccountCreationResponse)
userapi/api/api.go:90
↓ 8 callersMethodPerformDeviceCreation
(ctx context.Context, req *PerformDeviceCreationRequest, res *PerformDeviceCreationResponse)
userapi/api/api.go:91
↓ 8 callersMethodQueryJoinedHostServerNamesInRoom
Query the server names of the joined hosts in a room. Unlike QueryJoinedHostsInRoom, this function returns a de-duplicated slice containing only the s
federationapi/api/api.go:39
↓ 8 callersMethodQuerySharedUsers
QuerySharedUsers returns a list of users who share at least 1 room in common with the given user.
roomserver/api/api.go:73
↓ 8 callersMethodSetCurrentPosition
SetCurrentPosition sets the current streaming positions. This must be called directly after NewNotifier and initialising the streams.
syncapi/notifier/notifier.go:68
↓ 8 callersMethodStop
()
cmd/dendrite-demo-yggdrasil/yggconn/node.go:117
↓ 8 callersMethodSuccess
Success updates the server statistics with a new successful attempt, which increases the sent counter and resets the idle and failure counters. If a h
federationapi/statistics/statistics.go:95
↓ 8 callersFunctionlockedFetchUserStream
lockedFetchUserStream invokes Notifier.fetchUserStream, respecting Notifier.streamLock. A new stream is made if it doesn't exist already.
syncapi/notifier/notifier_test.go:361
↓ 8 callersMethodlookup
lookup an entry in the event map.
roomserver/state/state.go:1315
↓ 8 callersFunctionmustCreateEvent
(t *testing.T, ev fledglingEvent)
setup/mscs/msc2836/msc2836_test.go:578
↓ 8 callersFunctionprepareWithFilters
prepareWithFilters returns a prepared statement with the relevant filters included. It also includes an []interface{} list of all the relevant paramet
syncapi/storage/sqlite3/filtering.go:26
↓ 8 callersFunctionqueryPushRules
(ctx context.Context, userID string, userAPI userapi.ClientUserAPI)
clientapi/routing/pushrules.go:269
↓ 7 callersMethodBulkSelectEventID
bulkSelectEventID returns a map from numeric event ID to string event ID.
roomserver/storage/sqlite3/events_table.go:473
↓ 7 callersMethodDefaults
(generate bool)
setup/config/config_global.go:189
↓ 7 callersFunctionDeviceListCatchup
DeviceListCatchup fills in the given response for the given user ID to bring it up-to-date with device lists. hasNew=true if the response was filled i
syncapi/internal/keychange.go:48
↓ 7 callersMethodError
()
roomserver/api/perform.go:21
↓ 7 callersMethodEvents
Events lookups a list of event by their event ID. Returns a list of events matching the requested IDs found in the database. If an event is not found
syncapi/storage/interface.go:67
↓ 7 callersMethodFetchTransaction
FetchTransaction looks up an entry for the (accessToken, txnID) tuple in Cache. Looks in both the txnMaps. Returns (JSON response, true) if txnID is f
internal/transactions/transactions.go:63
↓ 7 callersMethodGetRoomIDForAlias
Look up the room ID a given alias refers to. Returns an error if there was a problem talking to the database.
roomserver/internal/alias.go:40
↓ 7 callersFunctionNewNotifier
NewNotifier creates a new notifier set to the given sync position. In order for this to be of any use, the Notifier needs to be told all rooms and the
syncapi/notifier/notifier.go:55
↓ 7 callersMethodOnNewEvent
OnNewEvent is called when a new event is received from the room server. Must only be called from a single goroutine, to avoid races between updates wh
syncapi/notifier/notifier.go:85
↓ 7 callersMethodPerformDeviceDeletion
(ctx context.Context, req *PerformDeviceDeletionRequest, res *PerformDeviceDeletionResponse)
userapi/api/api.go:93
↓ 7 callersMethodPerformInvite
(ctx context.Context, req *PerformInviteRequest, res *PerformInviteResponse)
roomserver/api/api.go:147
↓ 7 callersMethodPowerLevels
PowerLevels implements gomatrixserverlib.AuthEventProvider
roomserver/internal/helpers/auth.go:140
↓ 7 callersMethodQueryStateAfterEvents
Query the state after a list of events in a room from the room server.
roomserver/api/api.go:88
↓ 7 callersMethodSendEDU
SendEDU sends an EDU event to the destinations.
federationapi/queue/queue.go:256
↓ 7 callersMethodSendToDeviceUpdatesForSync
SendToDeviceUpdatesForSync returns a list of send-to-device updates. It returns the relevant events within the given ranges for the supplied user ID a
syncapi/storage/interface.go:129
↓ 7 callersMethodSetFederationAPI
needed to avoid chicken and egg scenario when setting up the interdependencies between the roomserver and other input APIs
roomserver/api/api.go:23
↓ 7 callersMethodStreamEventsToEvents
(device *userapi.Device, in []types.StreamEvent)
syncapi/storage/shared/syncserver.go:296
↓ 7 callersMethodString
()
federationapi/storage/shared/storage.go:55
↓ 7 callersMethodUserAPIClient
UserAPIClient returns UserInternalAPI for hitting the userapi over HTTP.
setup/base/base.go:297
↓ 7 callersMethodWaitForShutdown
()
setup/base/base.go:541
↓ 7 callersMethodaddCompletedSessionStage
addCompletedSessionStage records that a session has completed an auth stage also starts a timer to delete the session once done.
clientapi/routing/register.go:161
↓ 7 callersFunctionassertCatchup
(t *testing.T, hasNew bool, syncResponse *types.Response, want wantCatchup)
syncapi/internal/keychange_test.go:132
↓ 7 callersFunctionnewTestSyncRequest
(userID, deviceID string, since types.StreamingToken)
syncapi/notifier/notifier_test.go:368
↓ 7 callersFunctionpubRoom
(name string)
clientapi/routing/directory_public_test.go:10
↓ 7 callersFunctionpushRuleSetByScope
(ruleSets *pushrules.AccountRuleSets, scope pushrules.Scope)
clientapi/routing/pushrules.go:291
↓ 7 callersFunctionwaitForEvents
(n *Notifier, req types.SyncRequest)
syncapi/notifier/notifier_test.go:336
↓ 6 callersMethodBroadcast
Broadcast a new sync position for this user.
syncapi/notifier/userstream.go:88
↓ 6 callersMethodClose
Close implements io.Closer
setup/base/base.go:251
↓ 6 callersFunctionGetAuthChain
GetAuthChain fetches the auth chain for the given auth events. An auth chain is the list of all events that are referenced in the auth_events section,
roomserver/internal/query/query.go:532
↓ 6 callersMethodGetEvent
(ctx context.Context, s gomatrixserverlib.ServerName, eventID string)
federationapi/api/api.go:90
↓ 6 callersMethodGetMembershipEventNIDsForRoom
Lookup the membership event numeric IDs for all user that are or have been members of a given room. Only lookup events of "join" membership if joinOnl
roomserver/storage/interface.go:133
↓ 6 callersMethodIsInterestedInUserID
IsInterestedInUserID returns a bool on whether an application service's namespace includes the given user ID
setup/config/config_appservice.go:122
↓ 6 callersMethodJudgeShouldAutoJoin
(ctx context.Context, inviter, invitee string)
userapi/api/api.go:72
↓ 6 callersMethodPerformJoin
(ctx context.Context, req *PerformJoinRequest, res *PerformJoinResponse)
roomserver/api/api.go:148
↓ 6 callersMethodPerformKeyBackup
(ctx context.Context, req *PerformKeyBackupRequest, res *PerformKeyBackupResponse)
userapi/api/api.go:104
↓ 6 callersMethodPerformLeave
(ctx context.Context, req *PerformLeaveRequest, res *PerformLeaveResponse)
roomserver/api/api.go:149
↓ 6 callersMethodPerformLoginTokenDeletion
PerformLoginTokenDeletion ensures the token doesn't exist. Success is returned even if the token didn't exist, or was already deleted.
userapi/api/api_logintoken.go:35
↓ 6 callersMethodPerformPublish
(ctx context.Context, req *PerformPublishRequest, res *PerformPublishResponse)
roomserver/api/api.go:150
↓ 6 callersMethodQueryAccountData
(ctx context.Context, req *QueryAccountDataRequest, res *QueryAccountDataResponse)
userapi/api/api.go:70
↓ 6 callersMethodQueryBulkStateContent
(ctx context.Context, req *QueryBulkStateContentRequest, res *QueryBulkStateContentResponse)
roomserver/api/api.go:53
↓ 6 callersMethodQueryLoginToken
QueryLoginToken returns the data associated with a login token. If the token is not valid, success is returned, but res.Data == nil.
userapi/api/api_logintoken.go:39
↓ 6 callersMethodQueryPublishedRooms
(ctx context.Context, req *QueryPublishedRoomsRequest, res *QueryPublishedRoomsResponse)
roomserver/api/api.go:135
↓ 6 callersMethodQueryServerJoinedToRoom
Query if we think we're still in a room.
roomserver/api/api.go:178
↓ 6 callersMethodRoomserverHTTPClient
RoomserverHTTPClient returns RoomserverInternalAPI for hitting the roomserver over HTTP.
setup/base/base.go:288
↓ 6 callersMethodSelectEventStateKeyNID
( ctx context.Context, txn *sql.Tx, eventStateKey string, )
roomserver/storage/sqlite3/event_state_keys_table.go:102
↓ 6 callersMethodSelectEvents
(ctx context.Context, txn *sql.Tx, eventIDs []string, filter *gomatrixserverlib.RoomEventFilter, preserveOrder
syncapi/storage/tables/interface.go:70
↓ 6 callersMethodSetAvatarURL
(ctx context.Context, req *PerformSetAvatarURLRequest, res *PerformSetAvatarURLResponse)
userapi/api/api.go:100
↓ 6 callersMethodSetDisplayName
(ctx context.Context, req *PerformUpdateDisplayNameRequest, res *struct{})
userapi/api/api.go:101
↓ 6 callersMethodSetUserAPI
SetUserAPI assigns a user API to query when extracting device names.
keyserver/api/api.go:36
↓ 6 callersMethodStateAtEventIDs
Look up the state of a room at each event for a list of string event IDs. Returns an error if there is an error talking to the database. The length of
roomserver/storage/interface.go:47
↓ 6 callersMethodUnmarshalJSON
(data []byte)
server/datamodel.go:126
↓ 6 callersMethod_joinedUsers
(roomID string)
syncapi/notifier/notifier.go:481
↓ 6 callersFunctioncheckMemberInRoom
(ctx context.Context, rsAPI roomserverAPI.ClientRoomserverAPI, userID, roomID string)
clientapi/routing/membership.go:427
↓ 6 callersFunctiongetFSType
getFSType returns the filesystem type of the underlying mounted filesystem
new_feature/media_manage/disk/type_bsd.go:24
↓ 6 callersMethodmakeInvite
(notify, target, from types.Uid, act types.InviteAction, modeWant, modeGiven types.AccessMode, info interface
server/topic.go:930
↓ 6 callersFunctionmustEqualPositions
(t *testing.T, got, want types.StreamingToken)
syncapi/notifier/notifier_test.go:102
↓ 6 callersFunctionpushRuleSetKindPointer
(ruleSet *pushrules.RuleSet, kind pushrules.Kind)
clientapi/routing/pushrules.go:300
↓ 6 callersMethodsetUsersJoinedToRooms
setUsersJoinedToRooms marks the given users as 'joined' to the given rooms, such that new events from these rooms will wake the given users /sync requ
syncapi/notifier/notifier.go:361
↓ 6 callersMethodstartTimer
(duration time.Duration, sessionID string)
clientapi/routing/register.go:143
↓ 6 callersMethodstop
(stateNID types.StateSnapshotNID, err error)
roomserver/state/state.go:561
↓ 6 callersFunctionwaitForBlocking
Wait until something is Wait()ing on the user stream.
syncapi/notifier/notifier_test.go:352
↓ 5 callersMethodAddress
()
setup/config/config.go:150
↓ 5 callersMethodBulkSelectEventJSON
( ctx context.Context, txn *sql.Tx, eventNIDs []types.EventNID, )
roomserver/storage/sqlite3/event_json_table.go:78
↓ 5 callersMethodCommit
Commit the transaction
internal/sqlutil/sql.go:33
↓ 5 callersMethodCreateFederationClient
( base *base.BaseDendrite, )
cmd/dendrite-demo-yggdrasil/yggconn/client.go:41
↓ 5 callersMethodDeviceKeysForUser
DeviceKeysForUser returns the device keys for the device IDs given. If the length of deviceIDs is 0, all devices are selected. If there are some missi
keyserver/storage/interface.go:56
↓ 5 callersMethodEventNIDs
Look up the numeric IDs for a list of events. Returns an error if there was a problem talking to the database.
roomserver/storage/interface.go:88
↓ 5 callersMethodFetcherName
()
federationapi/internal/keys.go:90
↓ 5 callersMethodInputAccountData
(ctx context.Context, req *InputAccountDataRequest, res *InputAccountDataResponse)
userapi/api/api.go:103
↓ 5 callersMethodInsertEvent
( ctx context.Context, txn *sql.Tx, event *gomatrixserverlib.HeaderedEvent, addState, removeState []s
syncapi/storage/tables/interface.go:56
↓ 5 callersMethodKeyServerHTTPClient
KeyServerHTTPClient returns KeyInternalAPI for hitting the key server over HTTP
setup/base/base.go:316
↓ 5 callersMethodLoadCombinedStateAfterEvents
LoadCombinedStateAfterEvents loads a snapshot of the state after each of the events and combines those snapshots together into a single list. At this
roomserver/state/state.go:153
↓ 5 callersMethodLookup
lookup an entry in the event map.
roomserver/internal/helpers/auth.go:295
↓ 5 callersFunctionMustMakeInternalAPI
(t *testing.T, opts apiTestOpts, dbType test.DBType)
userapi/userapi_test.go:47
↓ 5 callersFunctionMustWriteEvents
(t *testing.T, db storage.Database, events []*gomatrixserverlib.HeaderedEvent)
syncapi/storage/storage_test.go:31
↓ 5 callersFunctionNoErr
Generators of error messages
server/datamodel.go:446
↓ 5 callersMethodPerformLoginTokenCreation
PerformLoginTokenCreation creates a new login token and associates it with the provided data.
userapi/api/api_logintoken.go:31
↓ 5 callersMethodPositionInTopology
(ctx context.Context, eventID string)
syncapi/storage/interface.go:49
↓ 5 callersMethodPushGatewayHTTPClient
PushGatewayHTTPClient returns a new client for interacting with (external) Push Gateways.
setup/base/base.go:325
↓ 5 callersMethodQueryAccountAvailability
(ctx context.Context, req *QueryAccountAvailabilityRequest, res *QueryAccountAvailabilityResponse)
userapi/api/api.go:89
↓ 5 callersMethodQueryMembershipsForRoom
(ctx context.Context, req *QueryMembershipsForRoomRequest, res *QueryMembershipsForRoomResponse)
roomserver/api/api.go:160
↓ 5 callersMethodQueryStateAndAuthChain
Query to get state and auth chain for a (potentially hypothetical) event. Takes lists of PrevEventIDs and AuthEventsIDs and uses them to calculate the
roomserver/api/api.go:176
↓ 5 callersMethodRollback
Rollback the transaction.
internal/sqlutil/sql.go:35
← previousnext →101–200 of 3,776, ranked by callers