Versions in this module Expand all Collapse all v0 v0.12.2 Mar 18, 2021 Changes in this version + const BoltBackendName + const DefaultBoltAutoCompactMinAge + const DefaultDBTimeout + const DefaultTempDBFileName + const EtcdBackendName + const LastCompactionFileNameSuffix + const TestBackend + var Create = walletdb.Create + var ErrBucketExists = walletdb.ErrBucketExists + var ErrBucketNotFound = walletdb.ErrBucketNotFound + var ErrDatabaseNotOpen = walletdb.ErrDbNotOpen + var Open = walletdb.Open + func Batch(db Backend, f func(tx RwTx) error) error + func Update(db Backend, f func(tx RwTx) error, reset func()) error + func UseLogger(logger btclog.Logger) + func View(db Backend, f func(tx RTx) error, reset func()) error + type Backend = walletdb.DB + func GetBoltBackend(cfg *BoltBackendConfig) (Backend, error) + func GetEtcdBackend(ctx context.Context, prefix string, etcdConfig *EtcdConfig) (Backend, error) + func GetEtcdTestBackend(path string, clientPort, peerPort uint16) (Backend, func(), error) + func GetTestBackend(path, name string) (Backend, func(), error) + type BoltBackendConfig struct + AutoCompact bool + AutoCompactMinAge time.Duration + DBFileName string + DBPath string + DBTimeout time.Duration + NoFreelistSync bool + type BoltConfig struct + AutoCompact bool + AutoCompactMinAge time.Duration + DBTimeout time.Duration + SyncFreelist bool + type Driver = walletdb.Driver + type EtcdConfig struct + CertFile string + CollectStats bool + Embedded bool + EmbeddedClientPort uint16 + EmbeddedPeerPort uint16 + Host string + InsecureSkipVerify bool + KeyFile string + Namespace string + Pass string + User string + type ExtendedBackend interface + PrintStats func() string + Update func(f func(tx walletdb.ReadWriteTx) error, reset func()) error + View func(f func(tx walletdb.ReadTx) error, reset func()) error + type RBucket = walletdb.ReadBucket + type RCursor = walletdb.ReadCursor + type RTx = walletdb.ReadTx + type RwBucket = walletdb.ReadWriteBucket + type RwCursor = walletdb.ReadWriteCursor + type RwTx = walletdb.ReadWriteTx