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
Method
EventTypeNIDs
(ctx context.Context, eventTypes []string)
roomserver/state/state.go:35
↓ 2 callers
Method
EvictFederationQueuedEDU
(eventNID int64)
internal/caching/cache_federationevents.go:16
↓ 2 callers
Method
ExecutedMigrations
ExecutedMigrations returns a map with already executed migrations in addition to creating the migrations table, if it doesn't exist.
internal/sqlutil/migrate.go:122
↓ 2 callers
Method
Failure
Failure marks a failure and starts backing off if needed. The next call to BackoffIfRequired will do the right thing after this. It will return the ti
statistics/statistics.go:111
↓ 2 callers
Method
FetchKeys
( _ context.Context, requests map[gomatrixserverlib.PublicKeyLookupRequest]gomatrixserverlib.Timestamp, )
federationapi/internal/keys.go:32
↓ 2 callers
Method
Find
* func (u UsersObjMapper) GetLastSeenAndStatus(appid uint32, id types.Uid) (time.Time, interface{}, error) { return adaptr.GetLastSeenAndStatus(appid
server/store/store.go:192
↓ 2 callers
Function
GetAccountData
GetAccountData implements GET /user/{userId}/[rooms/{roomid}/]account_data/{type}
clientapi/routing/account_data.go:34
↓ 2 callers
Method
GetAllJoinedHosts
(ctx context.Context)
federationapi/storage/interface.go:32
↓ 2 callers
Method
GetEventsInTopologicalRange
GetEventsInTopologicalRange retrieves all of the events on a given ordering using the given extremities and limit. If backwardsOrdering is true, the m
syncapi/storage/interface.go:116
↓ 2 callers
Method
GetFilter
GetFilter looks up the filter associated with a given local user and filter ID and populates the target filter. Otherwise returns an error if no such
syncapi/storage/interface.go:138
↓ 2 callers
Function
GetHttpClient
(options ...interface{})
new_feature/notice_func.go:14
↓ 2 callers
Method
GetJoinedHosts
(ctx context.Context, roomID string)
federationapi/storage/interface.go:31
↓ 2 callers
Method
GetListener
GetListener returns a UserStreamListener that can be used to wait for updates for a user. Must be closed. notify for anything before sincePos
syncapi/notifier/notifier.go:300
↓ 2 callers
Function
GetMaxPanSize
()
new_feature/media_manage/init.go:8
↓ 2 callers
Method
GetMediaMetadataByHash
(ctx context.Context, mediaHash types.Base64Hash, mediaOrigin gomatrixserverlib.ServerName)
mediaapi/storage/interface.go:32
↓ 2 callers
Function
GetMemberships
GetMemberships implements GET /rooms/{roomId}/members
clientapi/routing/memberships.go:55
↓ 2 callers
Method
GetNotaryKeys
Query the notary for the server keys for the given server. If `optKeyIDs` is not empty, multiple server keys may be returned (between 1 - len(optKeyID
federationapi/storage/interface.go:73
↓ 2 callers
Method
GetNotifyChannel
GetNotifyChannel returns a channel that is closed when there may be an update for the user. sincePos specifies from which point we want to be notified
syncapi/notifier/userstream.go:141
↓ 2 callers
Method
GetRoomUpdater
Opens and returns a room updater, which locks the room and opens a transaction. The GetRoomUpdater must have Commit or Rollback called on it if this d
roomserver/storage/interface.go:97
↓ 2 callers
Method
GetServerKey
request -> timestamp is emulating gomatrixserverlib.FetchKeys: https://github.com/matrix-org/gomatrixserverlib/blob/f69539c86ea55d1e2cc76fd8e944e2d82d
internal/caching/cache_serverkeys.go:17
↓ 2 callers
Method
GetSyncPosition
GetSyncPosition returns last sync position which the UserStream was notified about
syncapi/notifier/userstream.go:129
↓ 2 callers
Function
GetThumbnailPath
GetThumbnailPath returns the path to a thumbnail given the absolute src path and thumbnail size configuration
mediaapi/thumbnailer/thumbnailer.go:43
↓ 2 callers
Method
GetThumbnails
(ctx context.Context, mediaID types.MediaID, mediaOrigin gomatrixserverlib.ServerName)
mediaapi/storage/interface.go:38
↓ 2 callers
Method
GetTypingUsers
GetTypingUsers returns the list of users typing in a room.
internal/caching/cache_typing.go:68
↓ 2 callers
Method
GetTypingUsersIfUpdatedAfter
GetTypingUsersIfUpdatedAfter returns all users typing in this room with updated == true if the typing sync position of the room is after the given pos
internal/caching/cache_typing.go:77
↓ 2 callers
Function
GetUserOffline3DayOrInactive3Day
(ctx context.Context, federation *gomatrixserverlib.FederationClient, userIds []string, server string)
clientapi/routing/activate_user.go:101
↓ 2 callers
Method
GetUsers
GetUsers loads subscriptions for topic plus loads user.Public
server/store/store.go:297
↓ 2 callers
Method
InPacket
(packetLen int64)
new_feature/media_manage/user_media_flow.go:17
↓ 2 callers
Method
InsertDeviceKeys
(ctx context.Context, txn *sql.Tx, keys []api.DeviceMessage)
keyserver/storage/tables/interface.go:39
↓ 2 callers
Method
InsertEventInTopology
InsertEventInTopology inserts the given event in the room's topology, based on the event's depth. `pos` is the stream position of this event in the ev
syncapi/storage/tables/interface.go:85
↓ 2 callers
Method
InsertEventJSON
( ctx context.Context, txn *sql.Tx, eventNID types.EventNID, eventJSON []byte, )
roomserver/storage/sqlite3/event_json_table.go:71
↓ 2 callers
Method
InsertInviteEvent
(ctx context.Context, txn *sql.Tx, inviteEvent *gomatrixserverlib.HeaderedEvent)
syncapi/storage/tables/interface.go:36
↓ 2 callers
Method
IsAfter
IsAfter returns true if ANY position in this token is greater than `other`.
syncapi/types/types.go:134
↓ 2 callers
Function
IsAnyUserOnServerWithMembership
(serverName gomatrixserverlib.ServerName, authEvents []*gomatrixserverlib.Event, wantMembership string)
roomserver/auth/auth.go:81
↓ 2 callers
Method
IsInterestedInRoomAlias
IsInterestedInRoomAlias returns a bool on whether an application service's namespace includes the given room alias
setup/config/config_appservice.go:154
↓ 2 callers
Method
IsReferenced
IsReferenced implements types.RoomRecentEventsUpdater
roomserver/storage/shared/room_updater.go:204
↓ 2 callers
Method
IsRoomPresent
(roomID string)
syncapi/types/provider.go:28
↓ 2 callers
Method
IsServerBlacklisted
(serverName gomatrixserverlib.ServerName)
federationapi/storage/interface.go:57
↓ 2 callers
Function
JoinRoomByIDOrAlias
( req *http.Request, device *api.Device, rsAPI roomserverAPI.ClientRoomserverAPI, profileAPI api.Clien
clientapi/routing/joinroom.go:29
↓ 2 callers
Function
JoinedHostsFromEvents
JoinedHostsFromEvents turns a list of state events into a list of joined hosts. This errors if one of the events was invalid. It should be impossible
federationapi/consumers/roomserver.go:283
↓ 2 callers
Method
JoinedUsers
(roomID string)
syncapi/notifier/notifier.go:475
↓ 2 callers
Function
JudgeIfPayByLocals
(from, to string)
new_feature/blockchain_func.go:55
↓ 2 callers
Function
KeyBackupVersion
KeyBackupVersion returns the key backup version specified. If `version` is empty, the latest `keyBackupVersionResponse` is returned. Implements GET /
clientapi/routing/key_backup.go:92
↓ 2 callers
Method
LoadStateAtSnapshotForStringTuples
LoadStateAtSnapshotForStringTuples loads the state for a list of event type and state key pairs at a snapshot. This is used when we only want to load
roomserver/state/state.go:290
↓ 2 callers
Function
LoadStateEvents
( ctx context.Context, db storage.Database, stateEntries []types.StateEntry, )
roomserver/internal/helpers/helpers.go:226
↓ 2 callers
Method
Login
(ctx context.Context, req interface{})
clientapi/auth/xs_jwt_auth.go:61
↓ 2 callers
Method
LoginFromJSON
Login with the auth type, returning an error response on failure. Not all types support login, only m.login.password and m.login.token See https://mat
clientapi/auth/user_interactive.go:46
↓ 2 callers
Function
LoginFromJSONReader
LoginFromJSONReader performs authentication given a login request body reader and some context. It returns the basic login information and a cleanup f
clientapi/auth/login.go:35
↓ 2 callers
Method
LookupServerKeys
(ctx context.Context, s gomatrixserverlib.ServerName, keyRequests map[gomatrixserverlib.PublicKeyLookupRequest
federationapi/api/api.go:22
↓ 2 callers
Method
MSC2836EventRelationships
MSC2836EventRelationships performs an /event_relationships request to a remote server
setup/mscs/msc2836/msc2836.go:486
↓ 2 callers
Method
ManualUpdate
ManualUpdate invalidates the device list for the given user and fetches the latest and tracks it. Blocks until the device list is synced or the timeou
keyserver/internal/device_list_update.go:187
↓ 2 callers
Method
MarkServersAlive
(destinations []gomatrixserverlib.ServerName)
federationapi/internal/perform.go:643
↓ 2 callers
Method
MatchEvent
MatchEvent returns the first matching rule. Returns nil if there was no match rule.
internal/pushrules/evaluate.go:56
↓ 2 callers
Method
MaxIdleConns
MaxIdleConns returns maximum idle connections to the DB
setup/config/config_global.go:257
↓ 2 callers
Method
MaxOpenConns
MaxOpenConns returns maximum open connections to the DB
setup/config/config_global.go:262
↓ 2 callers
Method
MaxStreamPositionForPDUs
(ctx context.Context)
syncapi/storage/interface.go:32
↓ 2 callers
Method
MaxTopologicalPosition
MaxTopologicalPosition returns the highest topological position for a given room.
syncapi/storage/interface.go:122
↓ 2 callers
Method
MembershipCount
(ctx context.Context, roomID, membership string, pos types.StreamPosition)
syncapi/storage/interface.go:43
↓ 2 callers
Method
Name
()
clientapi/auth/password.go:44
↓ 2 callers
Method
NeededStateEventIDs
()
roomserver/api/output.go:168
↓ 2 callers
Function
New
New is a wrapper which calls NewWithCleanupPeriod with DefaultCleanupPeriod as argument.
internal/transactions/transactions.go:44
↓ 2 callers
Function
NewEventRelationshipRequest
(body io.Reader)
setup/mscs/msc2836/msc2836.go:59
↓ 2 callers
Function
NewMediaFlowInfo
(username string, flowCouldPerDay int64)
new_feature/media_manage/user_media_flow.go:10
↓ 2 callers
Function
NewSharedSecretRegistration
(sharedSecret string)
clientapi/routing/register_secret.go:45
↓ 2 callers
Function
NewSharedSecretRegistrationRequest
(reader io.ReadCloser)
clientapi/routing/register_secret.go:29
↓ 2 callers
Function
NewStreamTokenFromString
(tok string)
syncapi/types/types.go:282
↓ 2 callers
Function
NewTopologyTokenFromString
(tok string)
syncapi/types/types.go:253
↓ 2 callers
Function
NoErrAccepted
(id, topic string, ts time.Time)
server/datamodel.go:466
↓ 2 callers
Method
NotifyNewEvents
NotifyNewEvents wakes up all waiting goroutines, notifying that events remain in the event queue for this application service worker.
appservice/types/types.go:41
↓ 2 callers
Method
NumWaiting
NumWaiting returns the number of goroutines waiting for waiting for updates. Used for metrics and testing.
syncapi/notifier/userstream.go:101
↓ 2 callers
Function
OnIncomingStateTypeRequest
OnIncomingStateTypeRequest is called when a client makes a rooms/{roomID}/state/{type}/{statekey} request. It will look in current state to see if the
clientapi/routing/state.go:170
↓ 2 callers
Method
OnNewInvite
( posUpdate types.StreamingToken, wakeUserID string, )
syncapi/notifier/notifier.go:222
↓ 2 callers
Method
OnNewKeyChange
( posUpdate types.StreamingToken, wakeUserID, keyChangeUserID string, )
syncapi/notifier/notifier.go:212
↓ 2 callers
Method
OnServerACLUpdate
(state *gomatrixserverlib.Event)
roomserver/acls/acls.go:89
↓ 2 callers
Method
OneTimeKeysCount
OneTimeKeysCount returns a count of all OTKs for this device.
keyserver/storage/interface.go:35
↓ 2 callers
Method
OwnsNamespaceCoveringUserId
OwnsNamespaceCoveringUserId returns a bool on whether an application service's namespace is exclusive and includes the given user ID
setup/config/config_appservice.go:138
↓ 2 callers
Method
PerformBroadcastEDU
Broadcasts an EDU to all servers in rooms we are joined to. Used in the yggdrasil demos.
federationapi/api/api.go:27
↓ 2 callers
Method
PerformDeleteKeys
(ctx context.Context, req *PerformDeleteKeysRequest, res *PerformDeleteKeysResponse)
keyserver/api/api.go:52
↓ 2 callers
Method
PerformJoin
Handle an instruction to make_join & send_join with a remote server.
federationapi/api/api.go:50
↓ 2 callers
Method
PerformUploadDeviceKeys
(ctx context.Context, req *api.PerformUploadDeviceKeysRequest, res *api.PerformUploadDeviceKeysResponse)
keyserver/internal/device_list_update.go:122
↓ 2 callers
Method
PerformUploadDeviceKeys
(ctx context.Context, req *PerformUploadDeviceKeysRequest, res *PerformUploadDeviceKeysResponse)
keyserver/api/api.go:43
↓ 2 callers
Method
PerformUploadDeviceSignatures
(ctx context.Context, req *PerformUploadDeviceSignaturesRequest, res *PerformUploadDeviceSignaturesResponse)
keyserver/api/api.go:44
↓ 2 callers
Function
PostJSONNoSpan
PostJSONNoSpan performs a POST request with JSON on an internal HTTP API
new_feature/notice_func.go:25
↓ 2 callers
Method
ProduceKeyChanges
(keys []api.DeviceMessage)
keyserver/internal/device_list_update.go:127
↓ 2 callers
Method
ProduceSigningKeyUpdate
(key api.CrossSigningKeyUpdate)
keyserver/producers/keychange.go:72
↓ 2 callers
Method
QueryAccountByPassword
(ctx context.Context, req *QueryAccountByPasswordRequest, res *QueryAccountByPasswordResponse)
userapi/api/api.go:133
↓ 2 callers
Method
QueryDeviceMessages
(ctx context.Context, req *QueryDeviceMessagesRequest, res *QueryDeviceMessagesResponse)
keyserver/api/api.go:64
↓ 2 callers
Method
QueryKeyChanges
(ctx context.Context, req *QueryKeyChangesRequest, res *QueryKeyChangesResponse)
keyserver/api/api.go:57
↓ 2 callers
Method
QueryOneTimeKeys
(ctx context.Context, req *QueryOneTimeKeysRequest, res *QueryOneTimeKeysResponse)
keyserver/api/api.go:58
↓ 2 callers
Method
QueryServerKeys
(ctx context.Context, request *QueryServerKeysRequest, response *QueryServerKeysResponse)
federationapi/api/api.go:21
↓ 2 callers
Method
QuerySignatures
(ctx context.Context, req *QuerySignaturesRequest, res *QuerySignaturesResponse)
keyserver/api/api.go:63
↓ 2 callers
Method
RemoteAddr
()
cmd/dendrite-demo-pinecone/conn/ws.go:75
↓ 2 callers
Method
RoomAliasExists
Check whether a room alias exists within any application service namespaces
appservice/api/query.go:33
↓ 2 callers
Method
Save
Save message
server/store/store.go:356
↓ 2 callers
Function
SaveAccountData
SaveAccountData implements PUT /user/{userId}/[rooms/{roomId}/]account_data/{type}
clientapi/routing/account_data.go:77
↓ 2 callers
Method
SelectCrossSigningKeysForUser
(ctx context.Context, txn *sql.Tx, userID string)
keyserver/storage/tables/interface.go:62
↓ 2 callers
Method
SelectCrossSigningSigsForTarget
(ctx context.Context, txn *sql.Tx, originUserID, targetUserID string, targetKeyID gomatrixserverlib.KeyID)
keyserver/storage/tables/interface.go:67
↓ 2 callers
Method
SelectEvent
( ctx context.Context, txn *sql.Tx, eventID string, )
roomserver/storage/sqlite3/events_table.go:181
↓ 2 callers
Method
SelectMaxPositionInTopology
SelectMaxPositionInTopology returns the event which has the highest depth, and if there are multiple, the event with the highest stream position.
syncapi/storage/tables/interface.go:94
↓ 2 callers
Method
SelectQueueJSON
(ctx context.Context, txn *sql.Tx, jsonNIDs []int64)
federationapi/storage/tables/interface.go:51
← previous
next →
501–600 of 3,776, ranked by callers