Documentation
¶
Index ¶
- func NewDatabase(ctx context.Context, cm sqlutil.ConnectionManager, serverName spec.ServerName, ...) (*shared.Database, error)
- func NewKeyDatabase(ctx context.Context, cm sqlutil.ConnectionManager) (*shared.KeyDatabase, error)
- func NewPostgresAccountDataTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.AccountDataTable, error)
- func NewPostgresAccountsTable(ctx context.Context, cm sqlutil.ConnectionManager, serverName spec.ServerName) (tables.AccountsTable, error)
- func NewPostgresCrossSigningKeysTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.CrossSigningKeys, error)
- func NewPostgresCrossSigningSigsTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.CrossSigningSigs, error)
- func NewPostgresDeviceKeysTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.DeviceKeys, error)
- func NewPostgresDevicesTable(ctx context.Context, cm sqlutil.ConnectionManager, serverName spec.ServerName) (tables.DevicesTable, error)
- func NewPostgresKeyBackupTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.KeyBackupTable, error)
- func NewPostgresKeyBackupVersionTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.KeyBackupVersionTable, error)
- func NewPostgresKeyChangesTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.KeyChanges, error)
- func NewPostgresLoginTokenTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.LoginTokenTable, error)
- func NewPostgresNotificationTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.NotificationTable, error)
- func NewPostgresOneTimeKeysTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.OneTimeKeys, error)
- func NewPostgresOpenIDTable(ctx context.Context, cm sqlutil.ConnectionManager, serverName spec.ServerName) (tables.OpenIDTable, error)
- func NewPostgresProfilesTable(ctx context.Context, cm sqlutil.ConnectionManager, ...) (tables.ProfileTable, error)
- func NewPostgresPusherTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.PusherTable, error)
- func NewPostgresRegistrationTokensTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.RegistrationTokensTable, error)
- func NewPostgresStaleDeviceListsTable(_ context.Context, cm sqlutil.ConnectionManager) (tables.StaleDeviceLists, error)
- func NewPostgresStatsTable(ctx context.Context, cm sqlutil.ConnectionManager, serverName spec.ServerName) (tables.StatsTable, error)
- func NewPostgresThreePIDTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.ThreePIDTable, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatabase ¶
func NewDatabase(ctx context.Context, cm sqlutil.ConnectionManager, 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 ¶
func NewKeyDatabase(ctx context.Context, cm sqlutil.ConnectionManager) (*shared.KeyDatabase, error)
func NewPostgresAccountDataTable ¶
func NewPostgresAccountDataTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.AccountDataTable, error)
NewPostgresAccountDataTable creates a new account data table object.
func NewPostgresAccountsTable ¶
func NewPostgresAccountsTable(ctx context.Context, cm sqlutil.ConnectionManager, serverName spec.ServerName) (tables.AccountsTable, error)
NewPostgresAccountsTable creates a new postgres accounts table.
func NewPostgresCrossSigningKeysTable ¶
func NewPostgresCrossSigningKeysTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.CrossSigningKeys, error)
NewPostgresCrossSigningKeysTable creates a new postgres cross signing keys table.
func NewPostgresCrossSigningSigsTable ¶
func NewPostgresCrossSigningSigsTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.CrossSigningSigs, error)
NewPostgresCrossSigningSigsTable creates a new postgres cross signing signatures table.
func NewPostgresDeviceKeysTable ¶
func NewPostgresDeviceKeysTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.DeviceKeys, error)
NewPostgresDeviceKeysTable creates a new postgres device keys table
func NewPostgresDevicesTable ¶
func NewPostgresDevicesTable(ctx context.Context, cm sqlutil.ConnectionManager, serverName spec.ServerName) (tables.DevicesTable, error)
NewPostgresDevicesTable creates a new devices table object.
func NewPostgresKeyBackupTable ¶
func NewPostgresKeyBackupTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.KeyBackupTable, error)
NewPostgresKeyBackupTable creates a new postgres key backup table.
func NewPostgresKeyBackupVersionTable ¶
func NewPostgresKeyBackupVersionTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.KeyBackupVersionTable, error)
NewPostgresKeyBackupVersionTable creates a new postgres key backup version table.
func NewPostgresKeyChangesTable ¶
func NewPostgresKeyChangesTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.KeyChanges, error)
NewPostgresKeyChangesTable creates a new key changes table
func NewPostgresLoginTokenTable ¶
func NewPostgresLoginTokenTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.LoginTokenTable, error)
NewPostgresLoginTokenTable creates a new postgres login token table.
func NewPostgresNotificationTable ¶
func NewPostgresNotificationTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.NotificationTable, error)
NewPostgresNotificationTable creates a new postgres notification table
func NewPostgresOneTimeKeysTable ¶
func NewPostgresOneTimeKeysTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.OneTimeKeys, error)
NewPostgresOneTimeKeysTable creates a new one-time keys table
func NewPostgresOpenIDTable ¶
func NewPostgresOpenIDTable(ctx context.Context, cm sqlutil.ConnectionManager, serverName spec.ServerName) (tables.OpenIDTable, error)
NewPostgresOpenIDTable creates a new postgres openid table.
func NewPostgresProfilesTable ¶
func NewPostgresProfilesTable(ctx context.Context, cm sqlutil.ConnectionManager, serverNoticesLocalpart string) (tables.ProfileTable, error)
NewPostgresProfilesTable creates a new profile table object.
func NewPostgresPusherTable ¶
func NewPostgresPusherTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.PusherTable, error)
NewPostgresPusherTable creates a new postgres pusher table
func NewPostgresRegistrationTokensTable ¶
func NewPostgresRegistrationTokensTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.RegistrationTokensTable, error)
NewPostgresRegistrationTokensTable creates a new postgres registration tokens table
func NewPostgresStaleDeviceListsTable ¶
func NewPostgresStaleDeviceListsTable(_ context.Context, cm sqlutil.ConnectionManager) (tables.StaleDeviceLists, error)
NewPostgresStaleDeviceListsTable creates a new postgres stale device lists table.
func NewPostgresStatsTable ¶
func NewPostgresStatsTable(ctx context.Context, cm sqlutil.ConnectionManager, serverName spec.ServerName) (tables.StatsTable, error)
func NewPostgresThreePIDTable ¶
func NewPostgresThreePIDTable(ctx context.Context, cm sqlutil.ConnectionManager) (tables.ThreePIDTable, error)
NewPostgresThreePIDTable creates a new ThreePID table.
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