Versions in this module Expand all Collapse all v0 v0.5.0 Jul 17, 2025 Changes in this version + func NewNamedDriver(config driver.Config, dbProvider postgres.DbProvider) driver.NamedDriver + type AuditTransactionStore = common.TransactionStore + func NewAuditTransactionStore(dbs *common2.RWDB, tableNames common.TableNames) (*AuditTransactionStore, error) + type Driver struct + AuditTx lazy.Provider[postgres.Config, *AuditTransactionStore] + Identity lazy.Provider[postgres.Config, *IdentityStore] + OwnerTx lazy.Provider[postgres.Config, *TransactionStore] + Token lazy.Provider[postgres.Config, *TokenStore] + TokenLock lazy.Provider[postgres.Config, *TokenLockStore] + TokenNotifier lazy.Provider[postgres.Config, *TokenNotifier] + Wallet lazy.Provider[postgres.Config, *WalletStore] + func NewDriver(config driver.Config) *Driver + func NewDriverWithDbProvider(config driver.Config, dbProvider postgres.DbProvider) *Driver + func (d *Driver) NewAuditTransaction(name driver2.PersistenceName, params ...string) (driver.AuditTransactionStore, error) + func (d *Driver) NewIdentity(name driver2.PersistenceName, params ...string) (driver.IdentityStore, error) + func (d *Driver) NewOwnerTransaction(name driver2.PersistenceName, params ...string) (driver.TokenTransactionStore, error) + func (d *Driver) NewToken(name driver2.PersistenceName, params ...string) (driver.TokenStore, error) + func (d *Driver) NewTokenLock(name driver2.PersistenceName, params ...string) (driver.TokenLockStore, error) + func (d *Driver) NewTokenNotifier(name driver2.PersistenceName, params ...string) (driver.TokenNotifier, error) + func (d *Driver) NewWallet(name driver2.PersistenceName, params ...string) (driver.WalletStore, error) + type IdentityStore = common.IdentityStore + func NewIdentityStore(dbs *common2.RWDB, tableNames common.TableNames) (*IdentityStore, error) + type TokenLockStore struct + func NewTokenLockStore(dbs *common2.RWDB, tableNames common.TableNames) (*TokenLockStore, error) + func (db *TokenLockStore) Cleanup(ctx context.Context, leaseExpiry time.Duration) error + type TokenStore = common.TokenStore + func NewTokenStore(dbs *common2.RWDB, tableNames common.TableNames) (*TokenStore, error) + type TransactionStore = common.TransactionStore + func NewTransactionStore(dbs *common2.RWDB, tableNames common.TableNames) (*TransactionStore, error) + type WalletStore = common.WalletStore + func NewWalletStore(dbs *common2.RWDB, tableNames common.TableNames) (*WalletStore, error) v0.4.0 Jan 7, 2025 Changes in this version + func NewAuditTransactionDB(db *sql.DB, opts common.NewDBOpts) (driver.AuditTransactionDB, error) + func NewIdentityDB(db *sql.DB, opts common.NewDBOpts) (driver.IdentityDB, error) + func NewTokenDB(db *sql.DB, opts common.NewDBOpts) (driver.TokenDB, error) + func NewTokenLockDB(db *sql.DB, k common.NewDBOpts) (driver.TokenLockDB, error) + func NewTokenNotifier(db *sql.DB, opts common.NewDBOpts) (driver.TokenNotifier, error) + func NewTransactionDB(db *sql.DB, opts common.NewDBOpts) (driver.TokenTransactionDB, error) + func NewWalletDB(db *sql.DB, opts common.NewDBOpts) (driver.WalletDB, error) + func OpenAuditTransactionDB(k common.Opts) (driver.AuditTransactionDB, error) + func OpenIdentityDB(k common.Opts) (driver.IdentityDB, error) + func OpenTokenLockDB(k common.Opts) (driver.TokenLockDB, error) + func OpenTransactionDB(k common.Opts) (driver.TokenTransactionDB, error) + func OpenWalletDB(k common.Opts) (driver.WalletDB, error) + type TokenLockDB struct + func (db *TokenLockDB) Cleanup(leaseExpiry time.Duration) error + type TokenNotifier struct