Documentation ¶
Index ¶
- Constants
- func NewSqliteAccountDataTable(db *sql.DB, streamID *StreamIDStatements) (tables.AccountData, error)
- func NewSqliteBackwardsExtremitiesTable(db *sql.DB) (tables.BackwardsExtremities, error)
- func NewSqliteCurrentRoomStateTable(db *sql.DB, streamID *StreamIDStatements) (tables.CurrentRoomState, error)
- func NewSqliteEventsTable(db *sql.DB, streamID *StreamIDStatements) (tables.Events, error)
- func NewSqliteFilterTable(db *sql.DB) (tables.Filter, error)
- func NewSqliteIgnoresTable(db *sql.DB) (tables.Ignores, error)
- func NewSqliteInvitesTable(db *sql.DB, streamID *StreamIDStatements) (tables.Invites, error)
- func NewSqliteMembershipsTable(db *sql.DB) (tables.Memberships, error)
- func NewSqliteNotificationDataTable(db *sql.DB, streamID *StreamIDStatements) (tables.NotificationData, error)
- func NewSqlitePeeksTable(db *sql.DB, streamID *StreamIDStatements) (tables.Peeks, error)
- func NewSqlitePresenceTable(db *sql.DB, streamID *StreamIDStatements) (*presenceStatements, error)
- func NewSqliteReceiptsTable(db *sql.DB, streamID *StreamIDStatements) (tables.Receipts, error)
- func NewSqliteRelationsTable(db *sql.DB, streamID *StreamIDStatements) (tables.Relations, error)
- func NewSqliteSendToDeviceTable(db *sql.DB) (tables.SendToDevice, error)
- func NewSqliteTopologyTable(db *sql.DB) (tables.Topology, error)
- type FilterOrder
- type StreamIDStatements
- type SyncServerDatasource
Constants ¶
View Source
const ( FilterOrderNone = iota FilterOrderAsc FilterOrderDesc )
Variables ¶
This section is empty.
Functions ¶
func NewSqliteAccountDataTable ¶
func NewSqliteAccountDataTable(db *sql.DB, streamID *StreamIDStatements) (tables.AccountData, error)
func NewSqliteBackwardsExtremitiesTable ¶
func NewSqliteBackwardsExtremitiesTable(db *sql.DB) (tables.BackwardsExtremities, error)
func NewSqliteCurrentRoomStateTable ¶
func NewSqliteCurrentRoomStateTable(db *sql.DB, streamID *StreamIDStatements) (tables.CurrentRoomState, error)
func NewSqliteEventsTable ¶
func NewSqliteIgnoresTable ¶ added in v0.8.0
func NewSqliteInvitesTable ¶
func NewSqliteMembershipsTable ¶ added in v0.3.7
func NewSqliteMembershipsTable(db *sql.DB) (tables.Memberships, error)
func NewSqliteNotificationDataTable ¶ added in v0.6.5
func NewSqliteNotificationDataTable(db *sql.DB, streamID *StreamIDStatements) (tables.NotificationData, error)
func NewSqlitePeeksTable ¶
func NewSqlitePresenceTable ¶ added in v0.8.0
func NewSqlitePresenceTable(db *sql.DB, streamID *StreamIDStatements) (*presenceStatements, error)
func NewSqliteReceiptsTable ¶ added in v0.3.0
func NewSqliteRelationsTable ¶ added in v0.10.3
func NewSqliteSendToDeviceTable ¶
func NewSqliteSendToDeviceTable(db *sql.DB) (tables.SendToDevice, error)
Types ¶
type FilterOrder ¶ added in v0.3.7
type FilterOrder int
type StreamIDStatements ¶ added in v0.8.2
type StreamIDStatements struct {
// contains filtered or unexported fields
}
type SyncServerDatasource ¶
SyncServerDatasource represents a sync server datasource which manages both the database for PDUs and caches for EDUs.
func NewDatabase ¶
func NewDatabase(ctx context.Context, conMan *sqlutil.Connections, dbProperties *config.DatabaseOptions) (*SyncServerDatasource, error)
NewDatabase creates a new sync server database nolint: gocyclo
func (*SyncServerDatasource) NewDatabaseSnapshot ¶ added in v0.10.0
func (d *SyncServerDatasource) NewDatabaseSnapshot(ctx context.Context) (*shared.DatabaseTransaction, error)
func (*SyncServerDatasource) NewDatabaseTransaction ¶ added in v0.10.0
func (d *SyncServerDatasource) NewDatabaseTransaction(ctx context.Context) (*shared.DatabaseTransaction, error)
Source Files ¶
- account_data_table.go
- backwards_extremities_table.go
- current_room_state_table.go
- filter_table.go
- filtering.go
- ignores_table.go
- invites_table.go
- memberships_table.go
- notification_data_table.go
- output_room_events_table.go
- output_room_events_topology_table.go
- peeks_table.go
- presence_table.go
- receipt_table.go
- relations_table.go
- send_to_device_table.go
- stream_id_table.go
- syncserver.go
Click to show internal directories.
Click to hide internal directories.