Versions in this module Expand all Collapse all v0 v0.1.0 Dec 10, 2023 Changes in this version + type DB struct + func New(ctx context.Context, cfg *config.Config, wallet *xmr.Client, ...) (*DB, error) + func NewReadOnly(cfg *config.Config, parentLogger *slog.Logger) (*DB, error) + func (db *DB) CheckPendingPayment(id string) (*api.Receipt, error) + func (db *DB) Close() error + func (db *DB) Dump() (string, error) + func (db *DB) Flush(pending, alerts bool) error + func (db *DB) GetAlertEntry() (*api.Superchat, error) + func (db *DB) GetNMostRecent(n int) ([]api.Superchat, time.Time, error) + func (db *DB) NewPendingPayment(args *api.PendingPayment) error + func (db *DB) Stats() (*Stats, error) + type DumpEntry struct + Amount *xmr.Quantity + Message string + Name string + NotAlerted bool + PaymentID string + Seq uint64 + ShowAmount bool + Timestamp time.Time + TxID string + type Stats struct + AlertID uint64 + CompletedID uint64 + NumCompleted int + NumPendingPayment int