MCPcopy Create free account

hub / github.com/daodst/chat / functions

Functions3,776 in github.com/daodst/chat

↓ 559 callersMethodContext
()
setup/process/process.go:29
↓ 276 callersMethodError
()
clientapi/jsonerror/jsonerror.go:32
↓ 224 callersMethodPrepare
()
keyserver/storage/tables/interface.go:53
↓ 162 callersMethodQueryContext
(ctx context.Context, query string, args ...interface{})
internal/sqlutil/sql.go:124
↓ 143 callersMethodError
()
federationapi/api/api.go:113
↓ 136 callersMethodGet
(key K)
internal/caching/caches.go:40
↓ 127 callersMethodUnlock
(roomID string)
internal/mutex.go:29
↓ 126 callersMethodLock
(roomID string)
internal/mutex.go:17
↓ 121 callersMethodInfof
(msg string, args ...interface{})
setup/config/config.go:551
↓ 113 callersMethodError
Error returns a string detailing how many errors were contained within a configErrors type.
setup/config/config.go:346
↓ 101 callersMethodErr
()
roomserver/api/input.go:107
↓ 96 callersMethodError
()
keyserver/api/api.go:77
↓ 96 callersMethodSet
(key K, value T)
internal/caching/caches.go:41
↓ 85 callersMethodPrepare
()
federationapi/storage/tables/interface.go:45
↓ 81 callersMethodDo
Queue up one or more database write operations within the provided function to be executed when it is safe to do so.
internal/sqlutil/writer.go:45
↓ 81 callersMethodRun
()
new_feature/media_manage/media_manager.go:162
↓ 76 callersMethodAdd
Add appends an error to the list of errors in this configErrors. It is a wrapper to the builtin append and hides pointers from the client code. This m
setup/config/config.go:360
↓ 76 callersMethodString
()
syncapi/types/presence.go:33
↓ 74 callersFunctionjs
(thing interface{})
roomserver/api/api_trace.go:376
↓ 71 callersFunctionjs
(thing interface{})
userapi/api/api_trace.go:239
↓ 66 callersMethodClose
()
server/store/adapter/adapter.go:13
↓ 66 callersMethodError
()
roomserver/internal/input/input_missing.go:915
↓ 58 callersMethodError
()
userapi/api/api.go:491
↓ 54 callersMethodString
()
roomserver/api/input.go:45
↓ 51 callersMethodPrefixed
(name string)
setup/config/config_jetstream.go:26
↓ 47 callersMethodQueueOut
TODO(gene): unify simpleByteSender and QueueOut QueueOut attempts to send a SCM to a session; if the send buffer is full, time out is 1 second
server/session.go:140
↓ 34 callersFunctionerrorResponse
(ctx context.Context, err error, msg string, args ...interface{})
clientapi/routing/pushrules.go:16
↓ 31 callersMethodIsServerBannedFromRoom
(serverName gomatrixserverlib.ServerName, roomID string)
roomserver/acls/acls.go:123
↓ 31 callersMethodLimit
(req *http.Request, device *userapi.Device)
internal/httputil/rate_limiting.go:61
↓ 31 callersMethodLoad
Load the membership states required to notify users correctly.
syncapi/notifier/notifier.go:318
↓ 30 callersFunctionsimpleByteSender
simpleByteSender attempts to send a JSON to a connection, time out is 1 second
server/hub.go:647
↓ 26 callersMethodOpen
(config string, workerId int, uidkey []byte)
server/store/adapter/adapter.go:12
↓ 24 callersMethodRoomInfo
RoomInfo returns room information for the given room ID, or nil if there is no room.
roomserver/storage/interface.go:30
↓ 23 callersMethodPrevEventIDs
PrevEventIDs returns the prev_event IDs of all backwards extremities, de-duplicated in a lexicographically sorted order.
roomserver/api/perform.go:152
↓ 23 callersMethodWrite
(p []byte)
cmd/dendrite-demo-pinecone/conn/ws.go:34
↓ 22 callersFunctionErrUnknown
(id, topic string, ts time.Time)
server/datamodel.go:598
↓ 22 callersFunctionMakeFedAPI
MakeFedAPI makes an http.Handler that checks matrix federation authentication.
federationapi/routing/routing.go:527
↓ 21 callersMethodSetup
()
syncapi/types/provider.go:46
↓ 20 callersMethodAddMigrations
AddMigrations appends migrations to the list of migrations. Migrations are executed in the order they are added to the list. De-duplicates migrations
internal/sqlutil/migrate.go:71
↓ 20 callersMethodUp
Up executes all migrations in order they were added.
internal/sqlutil/migrate.go:83
↓ 20 callersFunctioncheckURL
checkURL verifies that the parameter is a valid URL
setup/config/config.go:389
↓ 19 callersMethodPublishMsg
(*nats.Msg, ...nats.PubOpt)
userapi/producers/syncapi.go:16
↓ 19 callersMethodSplit
Split a key in KeyJSON into algorithm and key ID
keyserver/api/api.go:162
↓ 18 callersMethodDurable
(name string)
setup/config/config_jetstream.go:30
↓ 18 callersFunctionErrMalformed
4xx Errors
server/datamodel.go:488
↓ 18 callersMethodEvents
(ctx context.Context, eventNIDs []types.EventNID)
roomserver/state/state.go:43
↓ 18 callersMethodIsStub
()
roomserver/types/types.go:296
↓ 18 callersMethodLatestPosition
LatestPosition returns the latest stream position for this stream.
syncapi/types/provider.go:62
↓ 17 callersFunctioncheckNotEmpty
checkNotEmpty verifies the given value is not empty in the configuration. If it is, adds an error to the list.
setup/config/config.go:366
↓ 16 callersMethodIsSQLite
()
setup/config/config.go:131
↓ 16 callersMethodQueryLatestEventsAndState
(ctx context.Context, req *QueryLatestEventsAndStateRequest, res *QueryLatestEventsAndStateResponse)
roomserver/api/api.go:48
↓ 16 callersMethodVerify
(configErrs *ConfigErrors, isMonolith bool)
setup/config/config.go:315
↓ 16 callersFunctionfilterConvertTypeWildcardToSQL
filterConvertWildcardToSQL converts wildcards as defined in https://matrix.org/docs/spec/client_server/r0.3.0.html#post-matrix-client-r0-user-userid-f
syncapi/storage/postgres/filtering.go:26
↓ 15 callersMethodDefaults
SetDefaults sets default config values if they are not explicitly set.
setup/config/config.go:296
↓ 15 callersMethodForServer
ForServer returns server statistics for the given server name. If it does not exist, it will create empty statistics and return those.
federationapi/statistics/statistics.go:30
↓ 15 callersMethodHigh
High returns the high number of the range This represents the position the client is going towards and hence is inclusive.
syncapi/types/types.go:78
↓ 15 callersMethodQueryRoomVersionForRoom
(ctx context.Context, req *QueryRoomVersionForRoomRequest, res *QueryRoomVersionForRoomResponse)
roomserver/api/api.go:134
↓ 15 callersMethodRoomVersion
RoomVersion implements types.RoomRecentEventsUpdater
roomserver/storage/shared/room_updater.go:87
↓ 15 callersFunctionnewReq
TODO: TestMSC2836TerminatesLoops (short and long) TODO: TestMSC2836UnknownEventsSkipped TODO: TestMSC2836SkipEventIfNotInRoom
setup/mscs/msc2836/msc2836_test.go:380
↓ 15 callersFunctionpostRelationships
(t *testing.T, expectCode int, accessToken string, req *msc2836.EventRelationshipRequest)
setup/mscs/msc2836/msc2836_test.go:410
↓ 14 callersMethodAdvance
Advance will update the latest position of the stream based on an update and will wake callers waiting on StreamNotifyAfter.
syncapi/types/provider.go:50
↓ 14 callersMethodIsPostgres
()
setup/config/config.go:135
↓ 14 callersMethodQueryMembershipForUser
Query the membership event for an user for a room.
roomserver/api/api.go:81
↓ 14 callersMethodQueryProfile
(ctx context.Context, req *QueryProfileRequest, res *QueryProfileResponse)
userapi/api/api.go:85
↓ 14 callersMethodStateSnapshotNID
()
roomserver/types/types.go:290
↓ 13 callersMethodApplyUpdates
ApplyUpdates applies any changes from the supplied StreamingToken. If the supplied streaming token contains any positions that are not 0, they are con
syncapi/types/types.go:175
↓ 13 callersMethodDatabaseConnection
DatabaseConnection assists in setting up a database connection. It accepts the database properties and a new writer for the given component. If we're
setup/base/base.go:264
↓ 13 callersMethodLow
Low returns the low number of the range. This represents the position the client already has and hence is exclusive.
syncapi/types/types.go:69
↓ 13 callersMethodUpdate
Update changes values of user's subscription.
server/store/store.go:340
↓ 13 callersFunctionassertContains
(t *testing.T, result *msc2836.EventRelationshipResponse, wantEventIDs []string)
setup/mscs/msc2836/msc2836_test.go:448
↓ 12 callersFunctionErrPermissionDenied
(id, topic string, ts time.Time)
server/datamodel.go:528
↓ 12 callersMethodFailure
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
federationapi/statistics/statistics.go:111
↓ 12 callersMethodJSONResponse
JSONResponse maps error codes to suitable HTTP error codes, defaulting to 500.
roomserver/api/perform.go:26
↓ 12 callersMethodQueryCurrentState
QueryCurrentState retrieves the requested state events. If state events are not found, they will be missing from the response.
roomserver/api/api.go:65
↓ 12 callersMethodServeHTTP
(w http.ResponseWriter, r *http.Request)
cmd/dendrite-demo-pinecone/embed/embed_elementweb.go:40
↓ 11 callersMethodEventsFromIDs
EventsFromIDs looks up the Events for a list of event IDs. Does not error if event was not found. Returns an error if the retrieval went wrong.
roomserver/storage/interface.go:137
↓ 11 callersFunctionMustNotError
(t *testing.T, err error)
keyserver/storage/storage_test.go:27
↓ 11 callersMethodQueryDevices
(ctx context.Context, req *QueryDevicesRequest, res *QueryDevicesResponse)
userapi/api/api.go:74
↓ 11 callersMethodRead
(p []byte)
cmd/dendrite-demo-pinecone/conn/ws.go:42
↓ 11 callersMethodStoreKeyChange
StoreKeyChange stores key change metadata and returns the device change ID which represents the position in the /sync stream for this device change. `
keyserver/storage/interface.go:68
↓ 10 callersMethodEvents
()
test/room.go:203
↓ 10 callersMethodGetStateEvent
GetStateEvent returns the state event of a given type for a given room with a given state key If no event could be found, returns nil If there was an
roomserver/acls/acls.go:36
↓ 10 callersMethodIncrementalSync
IncrementalSync will update the response to include all updates between the from and to sync positions. It will always return immediately, making no c
syncapi/types/provider.go:59
↓ 10 callersMethodLessThan
LessThan returns true if this state entry is less than the other state entry. The ordering is arbitrary and is used to implement binary search and to
roomserver/types/types.go:149
↓ 10 callersMethodListenAndServe
ListenAndServe registers a variable in JS-land with the given namespace. This variable is a function which JS-land can call to 'send' HTTP requests. T
cmd/dendrite-monolith-server/dendritejs-pinecone/jsServer.go:87
↓ 10 callersMethodQueryEventsByID
Query a list of events by event ID.
roomserver/api/api.go:58
↓ 10 callersMethodSetupAndServeHTTP
SetupAndServeHTTP sets up the HTTP server to serve endpoints registered on ApiMux under /api/ and adds a prometheus handler under /metrics.
setup/base/base.go:394
↓ 10 callersMethodUsername
Username returns the user localpart/user_id in this request, if it exists.
clientapi/auth/user_interactive.go:76
↓ 10 callersMethod_wakeupUsers
_wakeupUsers will wake up the sync strems for all of the devices for all of the specified user IDs, and also the specified peekingDevices
syncapi/notifier/notifier.go:391
↓ 10 callersFunctionassertNoError
(t *testing.T, err error, msg string)
internal/sqlutil/sqlutil_test.go:167
↓ 10 callersFunctioncheckPositive
checkPositive verifies the given value is positive (zero included) in the configuration. If it is not, adds an error to the list.
setup/config/config.go:382
↓ 10 callersMethoddoRequestIfNotBlacklisted
( s gomatrixserverlib.ServerName, request func() (interface{}, error), )
federationapi/internal/api.go:170
↓ 10 callersFunctioneventNIDsAsArray
(eventNIDs []types.EventNID)
roomserver/storage/postgres/events_table.go:536
↓ 9 callersMethodCompleteSync
CompleteSync will update the response to include all updates as needed for a complete sync. It will always return immediately.
syncapi/types/provider.go:54
↓ 9 callersMethodCreate
(conn interface{}, appid uint32)
server/sessionstore.go:27
↓ 9 callersMethodCreateAndInsert
(t *testing.T, creator *User, eventType string, content interface{}, mods ...eventModifier)
test/room.go:217
↓ 9 callersMethodInputRoomEvents
( ctx context.Context, req *InputRoomEventsRequest, res *InputRoomEventsResponse, )
roomserver/api/api.go:39
↓ 9 callersMethodProduceRoomEvents
(roomID string, updates []api.OutputEvent)
roomserver/producers/roomevent.go:40
↓ 9 callersMethodQueryRoomsForUser
(ctx context.Context, req *QueryRoomsForUserRequest, res *QueryRoomsForUserResponse)
roomserver/api/api.go:130
↓ 9 callersMethodUnmarshalText
(text []byte)
setup/config/config_global.go:301
next →1–100 of 3,776, ranked by callers