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 NewSqliteInvitesTable(db *sql.DB, streamID *streamIDStatements) (tables.Invites, error)
- func NewSqliteMembershipsTable(db *sql.DB) (tables.Memberships, error)
- func NewSqlitePeeksTable(db *sql.DB, streamID *streamIDStatements) (tables.Peeks, error)
- func NewSqliteReceiptsTable(db *sql.DB, streamID *streamIDStatements) (tables.Receipts, error)
- func NewSqliteSendToDeviceTable(db *sql.DB) (tables.SendToDevice, error)
- func NewSqliteTopologyTable(db *sql.DB) (tables.Topology, error)
- type FilterOrder
- type SyncServerDatasource
Constants ¶
View Source
const ( FilterOrderNone = iota FilterOrderAsc FilterOrderDesc )
View Source
const DeleteRoomStateForRoomSQL = "" +
"DELETE FROM syncapi_current_room_state WHERE event_id = $1"
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 NewSqliteInvitesTable ¶
func NewSqliteMembershipsTable ¶ added in v0.3.7
func NewSqliteMembershipsTable(db *sql.DB) (tables.Memberships, error)
func NewSqlitePeeksTable ¶
func NewSqliteReceiptsTable ¶ added in v0.3.0
func NewSqliteSendToDeviceTable ¶
func NewSqliteSendToDeviceTable(db *sql.DB) (tables.SendToDevice, error)
Types ¶
type FilterOrder ¶ added in v0.3.7
type FilterOrder int
type SyncServerDatasource ¶
type SyncServerDatasource struct { shared.Database sqlutil.PartitionOffsetStatements // contains filtered or unexported fields }
SyncServerDatasource represents a sync server datasource which manages both the database for PDUs and caches for EDUs.
func NewDatabase ¶
func NewDatabase(dbProperties *config.DatabaseOptions) (*SyncServerDatasource, error)
NewDatabase creates a new sync server database nolint: gocyclo
Source Files ¶
- account_data_table.go
- backwards_extremities_table.go
- current_room_state_table.go
- filter_table.go
- filtering.go
- invites_table.go
- memberships_table.go
- output_room_events_table.go
- output_room_events_topology_table.go
- peeks_table.go
- receipt_table.go
- send_to_device_table.go
- stream_id_table.go
- syncserver.go
Click to show internal directories.
Click to hide internal directories.