Documentation ¶
Index ¶
- func NewDatabase(dbProperties *config.DatabaseOptions, serverName gomatrixserverlib.ServerName, ...) (*shared.Database, error)
- func NewPostgresAccountDataTable(db *sql.DB) (tables.AccountDataTable, error)
- func NewPostgresAccountsTable(db *sql.DB, serverName gomatrixserverlib.ServerName) (tables.AccountsTable, error)
- func NewPostgresDevicesTable(db *sql.DB, serverName gomatrixserverlib.ServerName) (tables.DevicesTable, error)
- func NewPostgresKeyBackupTable(db *sql.DB) (tables.KeyBackupTable, error)
- func NewPostgresKeyBackupVersionTable(db *sql.DB) (tables.KeyBackupVersionTable, error)
- func NewPostgresLoginTokenTable(db *sql.DB) (tables.LoginTokenTable, error)
- func NewPostgresNotificationTable(db *sql.DB) (tables.NotificationTable, error)
- func NewPostgresOpenIDTable(db *sql.DB, serverName gomatrixserverlib.ServerName) (tables.OpenIDTable, error)
- func NewPostgresProfilesTable(db *sql.DB, serverNoticesLocalpart string) (tables.ProfileTable, error)
- func NewPostgresPusherTable(db *sql.DB) (tables.PusherTable, error)
- func NewPostgresThreePIDTable(db *sql.DB) (tables.ThreePIDTable, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatabase ¶
func NewDatabase(dbProperties *config.DatabaseOptions, serverName gomatrixserverlib.ServerName, bcryptCost int, openIDTokenLifetimeMS int64, loginTokenLifetime time.Duration, serverNoticesLocalpart string) (*shared.Database, error)
NewDatabase creates a new accounts and profiles database
func NewPostgresAccountDataTable ¶
func NewPostgresAccountDataTable(db *sql.DB) (tables.AccountDataTable, error)
func NewPostgresAccountsTable ¶
func NewPostgresAccountsTable(db *sql.DB, serverName gomatrixserverlib.ServerName) (tables.AccountsTable, error)
func NewPostgresDevicesTable ¶
func NewPostgresDevicesTable(db *sql.DB, serverName gomatrixserverlib.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 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 NewPostgresOpenIDTable ¶
func NewPostgresOpenIDTable(db *sql.DB, serverName gomatrixserverlib.ServerName) (tables.OpenIDTable, error)
func NewPostgresPusherTable ¶ added in v0.6.5
func NewPostgresPusherTable(db *sql.DB) (tables.PusherTable, error)
func NewPostgresThreePIDTable ¶
func NewPostgresThreePIDTable(db *sql.DB) (tables.ThreePIDTable, error)
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.