Documentation ¶
Index ¶
- type Database
- func (d *Database) AssociateTransactionWithDestinations(ctx context.Context, destinations map[spec.UserID]struct{}, ...) error
- func (d *Database) CleanTransactions(ctx context.Context, userID spec.UserID, receipts []*receipt.Receipt) error
- func (d *Database) GetTransaction(ctx context.Context, userID spec.UserID) (*gomatrixserverlib.Transaction, *receipt.Receipt, error)
- func (d *Database) GetTransactionCount(ctx context.Context, userID spec.UserID) (int64, error)
- func (d *Database) StoreTransaction(ctx context.Context, transaction gomatrixserverlib.Transaction) (*receipt.Receipt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { DB *sql.DB IsLocalServerName func(spec.ServerName) bool Cache caching.FederationCache Writer sqlutil.Writer RelayQueue tables.RelayQueue RelayQueueJSON tables.RelayQueueJSON }
func (*Database) AssociateTransactionWithDestinations ¶
func (d *Database) AssociateTransactionWithDestinations( ctx context.Context, destinations map[spec.UserID]struct{}, transactionID gomatrixserverlib.TransactionID, dbReceipt *receipt.Receipt, ) error
func (*Database) CleanTransactions ¶
func (*Database) GetTransaction ¶
func (d *Database) GetTransaction( ctx context.Context, userID spec.UserID, ) (*gomatrixserverlib.Transaction, *receipt.Receipt, error)
func (*Database) GetTransactionCount ¶
func (*Database) StoreTransaction ¶
func (d *Database) StoreTransaction( ctx context.Context, transaction gomatrixserverlib.Transaction, ) (*receipt.Receipt, error)
Click to show internal directories.
Click to hide internal directories.