Versions in this module Expand all Collapse all v0 v0.14.0 Dec 18, 2024 Changes in this version + func GetAuthChain(ctx context.Context, fn eventsFromIDs, roomInfo *types.RoomInfo, ...) ([]gomatrixserverlib.PDU, error) + type Queryer struct + Cache caching.RoomServerCaches + Cfg *config.Dendrite + DB storage.Database + FSAPI fsAPI.RoomserverFederationAPI + IsLocalServerName func(spec.ServerName) bool + ServerACLs *acls.ServerACLs + func (querier *Queryer) QueryNextRoomHierarchyPage(ctx context.Context, walker roomserver.RoomHierarchyWalker, limit int) ([]fclient.RoomHierarchyRoom, []string, *roomserver.RoomHierarchyWalker, error) + func (r *Queryer) CurrentStateEvent(ctx context.Context, roomID spec.RoomID, eventType string, stateKey string) (gomatrixserverlib.PDU, error) + func (r *Queryer) InvitePending(ctx context.Context, roomID spec.RoomID, senderID spec.SenderID) (bool, error) + func (r *Queryer) JoinedUserCount(ctx context.Context, roomID string) (int, error) + func (r *Queryer) LocallyJoinedUsers(ctx context.Context, roomVersion gomatrixserverlib.RoomVersion, ...) ([]gomatrixserverlib.PDU, error) + func (r *Queryer) QueryAdminEventReport(ctx context.Context, reportID uint64) (api.QueryAdminEventReportResponse, error) + func (r *Queryer) QueryAdminEventReports(ctx context.Context, from uint64, limit uint64, backwards bool, ...) ([]api.QueryAdminEventReportsResponse, int64, error) + func (r *Queryer) QueryAuthChain(ctx context.Context, req *api.QueryAuthChainRequest, ...) error + func (r *Queryer) QueryBulkStateContent(ctx context.Context, req *api.QueryBulkStateContentRequest, ...) error + func (r *Queryer) QueryCurrentState(ctx context.Context, req *api.QueryCurrentStateRequest, ...) error + func (r *Queryer) QueryEventsByID(ctx context.Context, request *api.QueryEventsByIDRequest, ...) error + func (r *Queryer) QueryKnownUsers(ctx context.Context, req *api.QueryKnownUsersRequest, ...) error + func (r *Queryer) QueryLatestEventsAndState(ctx context.Context, request *api.QueryLatestEventsAndStateRequest, ...) error + func (r *Queryer) QueryLeftUsers(ctx context.Context, req *api.QueryLeftUsersRequest, ...) error + func (r *Queryer) QueryMembershipAtEvent(ctx context.Context, roomID spec.RoomID, eventIDs []string, ...) (map[string]*types.HeaderedEvent, error) + func (r *Queryer) QueryMembershipForSenderID(ctx context.Context, roomID spec.RoomID, senderID spec.SenderID, ...) error + func (r *Queryer) QueryMembershipForUser(ctx context.Context, request *api.QueryMembershipForUserRequest, ...) error + func (r *Queryer) QueryMembershipsForRoom(ctx context.Context, request *api.QueryMembershipsForRoomRequest, ...) error + func (r *Queryer) QueryMissingEvents(ctx context.Context, request *api.QueryMissingEventsRequest, ...) error + func (r *Queryer) QueryPublishedRooms(ctx context.Context, req *api.QueryPublishedRoomsRequest, ...) error + func (r *Queryer) QueryRestrictedJoinAllowed(ctx context.Context, roomID spec.RoomID, senderID spec.SenderID) (string, error) + func (r *Queryer) QueryRoomInfo(ctx context.Context, roomID spec.RoomID) (*types.RoomInfo, error) + func (r *Queryer) QueryRoomVersionForRoom(ctx context.Context, roomID string) (gomatrixserverlib.RoomVersion, error) + func (r *Queryer) QueryRoomsForUser(ctx context.Context, userID spec.UserID, desiredMembership string) ([]spec.RoomID, error) + func (r *Queryer) QuerySenderIDForUser(ctx context.Context, roomID spec.RoomID, userID spec.UserID) (*spec.SenderID, error) + func (r *Queryer) QueryServerAllowedToSeeEvent(ctx context.Context, serverName spec.ServerName, eventID string, roomID string) (allowed bool, err error) + func (r *Queryer) QueryServerBannedFromRoom(ctx context.Context, req *api.QueryServerBannedFromRoomRequest, ...) error + func (r *Queryer) QueryServerJoinedToRoom(ctx context.Context, request *api.QueryServerJoinedToRoomRequest, ...) error + func (r *Queryer) QuerySharedUsers(ctx context.Context, req *api.QuerySharedUsersRequest, ...) error + func (r *Queryer) QueryStateAfterEvents(ctx context.Context, request *api.QueryStateAfterEventsRequest, ...) error + func (r *Queryer) QueryStateAndAuthChain(ctx context.Context, request *api.QueryStateAndAuthChainRequest, ...) error + func (r *Queryer) QueryUserIDForSender(ctx context.Context, roomID spec.RoomID, senderID spec.SenderID) (*spec.UserID, error) + func (r *Queryer) RestrictedRoomJoinInfo(ctx context.Context, roomID spec.RoomID, senderID spec.SenderID, ...) (*gomatrixserverlib.RestrictedRoomJoinInfo, error) + func (r *Queryer) RoomsWithACLs(ctx context.Context) ([]string, error) + func (r *Queryer) UserJoinedToRoom(ctx context.Context, roomNID types.RoomNID, senderID spec.SenderID) (bool, error)