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
↓ 559 callers
Method
Context
()
setup/process/process.go:29
↓ 276 callers
Method
Error
()
clientapi/jsonerror/jsonerror.go:32
↓ 224 callers
Method
Prepare
()
keyserver/storage/tables/interface.go:53
↓ 162 callers
Method
QueryContext
(ctx context.Context, query string, args ...interface{})
internal/sqlutil/sql.go:124
↓ 143 callers
Method
Error
()
federationapi/api/api.go:113
↓ 136 callers
Method
Get
(key K)
internal/caching/caches.go:40
↓ 127 callers
Method
Unlock
(roomID string)
internal/mutex.go:29
↓ 126 callers
Method
Lock
(roomID string)
internal/mutex.go:17
↓ 121 callers
Method
Infof
(msg string, args ...interface{})
setup/config/config.go:551
↓ 113 callers
Method
Error
Error returns a string detailing how many errors were contained within a configErrors type.
setup/config/config.go:346
↓ 101 callers
Method
Err
()
roomserver/api/input.go:107
↓ 96 callers
Method
Error
()
keyserver/api/api.go:77
↓ 96 callers
Method
Set
(key K, value T)
internal/caching/caches.go:41
↓ 85 callers
Method
Prepare
()
federationapi/storage/tables/interface.go:45
↓ 81 callers
Method
Do
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 callers
Method
Run
()
new_feature/media_manage/media_manager.go:162
↓ 76 callers
Method
Add
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 callers
Method
String
()
syncapi/types/presence.go:33
↓ 74 callers
Function
js
(thing interface{})
roomserver/api/api_trace.go:376
↓ 71 callers
Function
js
(thing interface{})
userapi/api/api_trace.go:239
↓ 66 callers
Method
Close
()
server/store/adapter/adapter.go:13
↓ 66 callers
Method
Error
()
roomserver/internal/input/input_missing.go:915
↓ 58 callers
Method
Error
()
userapi/api/api.go:491
↓ 54 callers
Method
String
()
roomserver/api/input.go:45
↓ 51 callers
Method
Prefixed
(name string)
setup/config/config_jetstream.go:26
↓ 47 callers
Method
QueueOut
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 callers
Function
errorResponse
(ctx context.Context, err error, msg string, args ...interface{})
clientapi/routing/pushrules.go:16
↓ 31 callers
Method
IsServerBannedFromRoom
(serverName gomatrixserverlib.ServerName, roomID string)
roomserver/acls/acls.go:123
↓ 31 callers
Method
Limit
(req *http.Request, device *userapi.Device)
internal/httputil/rate_limiting.go:61
↓ 31 callers
Method
Load
Load the membership states required to notify users correctly.
syncapi/notifier/notifier.go:318
↓ 30 callers
Function
simpleByteSender
simpleByteSender attempts to send a JSON to a connection, time out is 1 second
server/hub.go:647
↓ 26 callers
Method
Open
(config string, workerId int, uidkey []byte)
server/store/adapter/adapter.go:12
↓ 24 callers
Method
RoomInfo
RoomInfo returns room information for the given room ID, or nil if there is no room.
roomserver/storage/interface.go:30
↓ 23 callers
Method
PrevEventIDs
PrevEventIDs returns the prev_event IDs of all backwards extremities, de-duplicated in a lexicographically sorted order.
roomserver/api/perform.go:152
↓ 23 callers
Method
Write
(p []byte)
cmd/dendrite-demo-pinecone/conn/ws.go:34
↓ 22 callers
Function
ErrUnknown
(id, topic string, ts time.Time)
server/datamodel.go:598
↓ 22 callers
Function
MakeFedAPI
MakeFedAPI makes an http.Handler that checks matrix federation authentication.
federationapi/routing/routing.go:527
↓ 21 callers
Method
Setup
()
syncapi/types/provider.go:46
↓ 20 callers
Method
AddMigrations
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 callers
Method
Up
Up executes all migrations in order they were added.
internal/sqlutil/migrate.go:83
↓ 20 callers
Function
checkURL
checkURL verifies that the parameter is a valid URL
setup/config/config.go:389
↓ 19 callers
Method
PublishMsg
(*nats.Msg, ...nats.PubOpt)
userapi/producers/syncapi.go:16
↓ 19 callers
Method
Split
Split a key in KeyJSON into algorithm and key ID
keyserver/api/api.go:162
↓ 18 callers
Method
Durable
(name string)
setup/config/config_jetstream.go:30
↓ 18 callers
Function
ErrMalformed
4xx Errors
server/datamodel.go:488
↓ 18 callers
Method
Events
(ctx context.Context, eventNIDs []types.EventNID)
roomserver/state/state.go:43
↓ 18 callers
Method
IsStub
()
roomserver/types/types.go:296
↓ 18 callers
Method
LatestPosition
LatestPosition returns the latest stream position for this stream.
syncapi/types/provider.go:62
↓ 17 callers
Function
checkNotEmpty
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 callers
Method
IsSQLite
()
setup/config/config.go:131
↓ 16 callers
Method
QueryLatestEventsAndState
(ctx context.Context, req *QueryLatestEventsAndStateRequest, res *QueryLatestEventsAndStateResponse)
roomserver/api/api.go:48
↓ 16 callers
Method
Verify
(configErrs *ConfigErrors, isMonolith bool)
setup/config/config.go:315
↓ 16 callers
Function
filterConvertTypeWildcardToSQL
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 callers
Method
Defaults
SetDefaults sets default config values if they are not explicitly set.
setup/config/config.go:296
↓ 15 callers
Method
ForServer
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 callers
Method
High
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 callers
Method
QueryRoomVersionForRoom
(ctx context.Context, req *QueryRoomVersionForRoomRequest, res *QueryRoomVersionForRoomResponse)
roomserver/api/api.go:134
↓ 15 callers
Method
RoomVersion
RoomVersion implements types.RoomRecentEventsUpdater
roomserver/storage/shared/room_updater.go:87
↓ 15 callers
Function
newReq
TODO: TestMSC2836TerminatesLoops (short and long) TODO: TestMSC2836UnknownEventsSkipped TODO: TestMSC2836SkipEventIfNotInRoom
setup/mscs/msc2836/msc2836_test.go:380
↓ 15 callers
Function
postRelationships
(t *testing.T, expectCode int, accessToken string, req *msc2836.EventRelationshipRequest)
setup/mscs/msc2836/msc2836_test.go:410
↓ 14 callers
Method
Advance
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 callers
Method
IsPostgres
()
setup/config/config.go:135
↓ 14 callers
Method
QueryMembershipForUser
Query the membership event for an user for a room.
roomserver/api/api.go:81
↓ 14 callers
Method
QueryProfile
(ctx context.Context, req *QueryProfileRequest, res *QueryProfileResponse)
userapi/api/api.go:85
↓ 14 callers
Method
StateSnapshotNID
()
roomserver/types/types.go:290
↓ 13 callers
Method
ApplyUpdates
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 callers
Method
DatabaseConnection
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 callers
Method
Low
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 callers
Method
Update
Update changes values of user's subscription.
server/store/store.go:340
↓ 13 callers
Function
assertContains
(t *testing.T, result *msc2836.EventRelationshipResponse, wantEventIDs []string)
setup/mscs/msc2836/msc2836_test.go:448
↓ 12 callers
Function
ErrPermissionDenied
(id, topic string, ts time.Time)
server/datamodel.go:528
↓ 12 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
federationapi/statistics/statistics.go:111
↓ 12 callers
Method
JSONResponse
JSONResponse maps error codes to suitable HTTP error codes, defaulting to 500.
roomserver/api/perform.go:26
↓ 12 callers
Method
QueryCurrentState
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 callers
Method
ServeHTTP
(w http.ResponseWriter, r *http.Request)
cmd/dendrite-demo-pinecone/embed/embed_elementweb.go:40
↓ 11 callers
Method
EventsFromIDs
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 callers
Function
MustNotError
(t *testing.T, err error)
keyserver/storage/storage_test.go:27
↓ 11 callers
Method
QueryDevices
(ctx context.Context, req *QueryDevicesRequest, res *QueryDevicesResponse)
userapi/api/api.go:74
↓ 11 callers
Method
Read
(p []byte)
cmd/dendrite-demo-pinecone/conn/ws.go:42
↓ 11 callers
Method
StoreKeyChange
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 callers
Method
Events
()
test/room.go:203
↓ 10 callers
Method
GetStateEvent
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 callers
Method
IncrementalSync
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 callers
Method
LessThan
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 callers
Method
ListenAndServe
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 callers
Method
QueryEventsByID
Query a list of events by event ID.
roomserver/api/api.go:58
↓ 10 callers
Method
SetupAndServeHTTP
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 callers
Method
Username
Username returns the user localpart/user_id in this request, if it exists.
clientapi/auth/user_interactive.go:76
↓ 10 callers
Method
_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 callers
Function
assertNoError
(t *testing.T, err error, msg string)
internal/sqlutil/sqlutil_test.go:167
↓ 10 callers
Function
checkPositive
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 callers
Method
doRequestIfNotBlacklisted
( s gomatrixserverlib.ServerName, request func() (interface{}, error), )
federationapi/internal/api.go:170
↓ 10 callers
Function
eventNIDsAsArray
(eventNIDs []types.EventNID)
roomserver/storage/postgres/events_table.go:536
↓ 9 callers
Method
CompleteSync
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 callers
Method
Create
(conn interface{}, appid uint32)
server/sessionstore.go:27
↓ 9 callers
Method
CreateAndInsert
(t *testing.T, creator *User, eventType string, content interface{}, mods ...eventModifier)
test/room.go:217
↓ 9 callers
Method
InputRoomEvents
( ctx context.Context, req *InputRoomEventsRequest, res *InputRoomEventsResponse, )
roomserver/api/api.go:39
↓ 9 callers
Method
ProduceRoomEvents
(roomID string, updates []api.OutputEvent)
roomserver/producers/roomevent.go:40
↓ 9 callers
Method
QueryRoomsForUser
(ctx context.Context, req *QueryRoomsForUserRequest, res *QueryRoomsForUserResponse)
roomserver/api/api.go:130
↓ 9 callers
Method
UnmarshalText
(text []byte)
setup/config/config_global.go:301
next →
1–100 of 3,776, ranked by callers