Documentation ¶
Index ¶
- type Database
- func (d *Database) GetLatestEventsForUpdate(ctx context.Context, roomInfo types.RoomInfo) (*shared.LatestEventsUpdater, error)
- func (d *Database) MembershipUpdater(ctx context.Context, roomID, targetUserID string, targetLocal bool, ...) (*shared.MembershipUpdater, error)
- func (d *Database) SupportsConcurrentRoomInputs() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
A Database is used to store room events and stream offsets.
func Open ¶
func Open(dbProperties *config.DatabaseOptions, cache caching.RoomServerCaches) (*Database, error)
Open a sqlite database.
func (*Database) GetLatestEventsForUpdate ¶
func (*Database) MembershipUpdater ¶
func (d *Database) MembershipUpdater( ctx context.Context, roomID, targetUserID string, targetLocal bool, roomVersion gomatrixserverlib.RoomVersion, ) (*shared.MembershipUpdater, error)
func (*Database) SupportsConcurrentRoomInputs ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.