Documentation ¶
Index ¶
- func NewDatabase(ctx context.Context, conMan *sqlutil.Connections, ...) (*shared.Database, error)
- func NewKeyDatabase(conMan *sqlutil.Connections, dbProperties *config.DatabaseOptions) (*shared.KeyDatabase, error)
- func NewPostgresAccountDataTable(db *sql.DB) (tables.AccountDataTable, error)
- func NewPostgresAccountsTable(db *sql.DB, serverName spec.ServerName) (tables.AccountsTable, error)
- func NewPostgresCrossSigningKeysTable(db *sql.DB) (tables.CrossSigningKeys, error)
- func NewPostgresCrossSigningSigsTable(db *sql.DB) (tables.CrossSigningSigs, error)
- func NewPostgresDeviceKeysTable(db *sql.DB) (tables.DeviceKeys, error)
- func NewPostgresDevicesTable(db *sql.DB, serverName spec.ServerName) (tables.DevicesTable, error)
- func NewPostgresKeyBackupTable(db *sql.DB) (tables.KeyBackupTable, error)
- func NewPostgresKeyBackupVersionTable(db *sql.DB) (tables.KeyBackupVersionTable, error)
- func NewPostgresKeyChangesTable(db *sql.DB) (tables.KeyChanges, error)
- func NewPostgresLoginTokenTable(db *sql.DB) (tables.LoginTokenTable, error)
- func NewPostgresNotificationTable(db *sql.DB) (tables.NotificationTable, error)
- func NewPostgresOneTimeKeysTable(db *sql.DB) (tables.OneTimeKeys, error)
- func NewPostgresOpenIDTable(db *sql.DB, serverName spec.ServerName) (tables.OpenIDTable, error)
- func NewPostgresProfilesTable(db *sql.DB, serverNoticesLocalpart string) (tables.ProfileTable, error)
- func NewPostgresPusherTable(db *sql.DB) (tables.PusherTable, error)
- func NewPostgresRegistrationTokensTable(db *sql.DB) (tables.RegistrationTokensTable, error)
- func NewPostgresStaleDeviceListsTable(db *sql.DB) (tables.StaleDeviceLists, error)
- func NewPostgresStatsTable(db *sql.DB, serverName spec.ServerName) (tables.StatsTable, error)
- func NewPostgresThreePIDTable(db *sql.DB) (tables.ThreePIDTable, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatabase ¶
func NewDatabase(ctx context.Context, conMan *sqlutil.Connections, dbProperties *config.DatabaseOptions, serverName spec.ServerName, bcryptCost int, openIDTokenLifetimeMS int64, loginTokenLifetime time.Duration, serverNoticesLocalpart string) (*shared.Database, error)
NewDatabase creates a new accounts and profiles database
func NewKeyDatabase ¶ added in v0.12.0
func NewKeyDatabase(conMan *sqlutil.Connections, dbProperties *config.DatabaseOptions) (*shared.KeyDatabase, error)
func NewPostgresAccountDataTable ¶
func NewPostgresAccountDataTable(db *sql.DB) (tables.AccountDataTable, error)
func NewPostgresAccountsTable ¶
func NewPostgresAccountsTable(db *sql.DB, serverName spec.ServerName) (tables.AccountsTable, error)
func NewPostgresCrossSigningKeysTable ¶ added in v0.12.0
func NewPostgresCrossSigningKeysTable(db *sql.DB) (tables.CrossSigningKeys, error)
func NewPostgresCrossSigningSigsTable ¶ added in v0.12.0
func NewPostgresCrossSigningSigsTable(db *sql.DB) (tables.CrossSigningSigs, error)
func NewPostgresDeviceKeysTable ¶ added in v0.12.0
func NewPostgresDeviceKeysTable(db *sql.DB) (tables.DeviceKeys, error)
func NewPostgresDevicesTable ¶
func NewPostgresDevicesTable(db *sql.DB, serverName spec.ServerName) (tables.DevicesTable, error)
func NewPostgresKeyBackupTable ¶
func NewPostgresKeyBackupTable(db *sql.DB) (tables.KeyBackupTable, error)
func NewPostgresKeyBackupVersionTable ¶
func NewPostgresKeyBackupVersionTable(db *sql.DB) (tables.KeyBackupVersionTable, error)
func NewPostgresKeyChangesTable ¶ added in v0.12.0
func NewPostgresKeyChangesTable(db *sql.DB) (tables.KeyChanges, error)
func NewPostgresLoginTokenTable ¶
func NewPostgresLoginTokenTable(db *sql.DB) (tables.LoginTokenTable, error)
func NewPostgresNotificationTable ¶ added in v0.6.5
func NewPostgresNotificationTable(db *sql.DB) (tables.NotificationTable, error)
func NewPostgresOneTimeKeysTable ¶ added in v0.12.0
func NewPostgresOneTimeKeysTable(db *sql.DB) (tables.OneTimeKeys, error)
func NewPostgresOpenIDTable ¶
func NewPostgresOpenIDTable(db *sql.DB, serverName spec.ServerName) (tables.OpenIDTable, error)
func NewPostgresPusherTable ¶ added in v0.6.5
func NewPostgresPusherTable(db *sql.DB) (tables.PusherTable, error)
func NewPostgresRegistrationTokensTable ¶ added in v0.13.0
func NewPostgresRegistrationTokensTable(db *sql.DB) (tables.RegistrationTokensTable, error)
func NewPostgresStaleDeviceListsTable ¶ added in v0.12.0
func NewPostgresStaleDeviceListsTable(db *sql.DB) (tables.StaleDeviceLists, error)
func NewPostgresStatsTable ¶ added in v0.8.3
func NewPostgresStatsTable(db *sql.DB, serverName spec.ServerName) (tables.StatsTable, error)
func NewPostgresThreePIDTable ¶
func NewPostgresThreePIDTable(db *sql.DB) (tables.ThreePIDTable, error)
Types ¶
This section is empty.
Source Files ¶
- account_data_table.go
- accounts_table.go
- cross_signing_keys_table.go
- cross_signing_sigs_table.go
- device_keys_table.go
- devices_table.go
- key_backup_table.go
- key_backup_version_table.go
- key_changes_table.go
- logintoken_table.go
- notifications_table.go
- one_time_keys_table.go
- openid_table.go
- profile_table.go
- pusher_table.go
- registration_tokens_table.go
- stale_device_lists.go
- stats_table.go
- storage.go
- threepid_table.go
Click to show internal directories.
Click to hide internal directories.