Documentation ¶
Index ¶
- func Decrypt() error
- func Encrypt() error
- type ConfigDB
- type FollowerDB
- type FollowingDB
- type InventoryDB
- func (i *InventoryDB) Delete(path string) error
- func (i *InventoryDB) DeleteAll(slug string) error
- func (i *InventoryDB) Get(slug string) (map[string]int, error)
- func (i *InventoryDB) GetAll() (map[string]int, error)
- func (i *InventoryDB) GetSpecific(path string) (int, error)
- func (i *InventoryDB) Put(slug string, count int) error
- type KeysDB
- func (k *KeysDB) GetAll() ([]spvwallet.KeyPath, error)
- func (k *KeysDB) GetLastKeyIndex(purpose spvwallet.KeyPurpose) (int, bool, error)
- func (k *KeysDB) GetLookaheadWindows() map[spvwallet.KeyPurpose]int
- func (k *KeysDB) GetPathForScript(scriptPubKey []byte) (spvwallet.KeyPath, error)
- func (k *KeysDB) GetUnused(purpose spvwallet.KeyPurpose) (int, error)
- func (k *KeysDB) MarkKeyAsUsed(scriptPubKey []byte) error
- func (k *KeysDB) Put(scriptPubKey []byte, keyPath spvwallet.KeyPath) error
- type OfflineMessagesDB
- type PointersDB
- type PurchasesDB
- func (p *PurchasesDB) Delete(orderID string) error
- func (p *PurchasesDB) GetAll() ([]string, error)
- func (p *PurchasesDB) GetByOrderId(orderId string) (*pb.RicardianContract, pb.OrderState, bool, []*spvwallet.TransactionRecord, ...)
- func (p *PurchasesDB) GetByPaymentAddress(addr btc.Address) (*pb.RicardianContract, pb.OrderState, bool, []*spvwallet.TransactionRecord, ...)
- func (p *PurchasesDB) MarkAsRead(orderID string) error
- func (p *PurchasesDB) Put(orderID string, contract pb.RicardianContract, state pb.OrderState, read bool) error
- func (p *PurchasesDB) UpdateFunding(orderId string, funded bool, records []*spvwallet.TransactionRecord) error
- type SQLiteDatastore
- func (d *SQLiteDatastore) Close()
- func (d *SQLiteDatastore) Config() repo.Config
- func (d *SQLiteDatastore) Copy(dbPath string, password string) error
- func (d *SQLiteDatastore) Followers() repo.Followers
- func (d *SQLiteDatastore) Following() repo.Following
- func (d *SQLiteDatastore) Inventory() repo.Inventory
- func (d *SQLiteDatastore) Keys() spvwallet.Keys
- func (d *SQLiteDatastore) OfflineMessages() repo.OfflineMessages
- func (d *SQLiteDatastore) Pointers() repo.Pointers
- func (d *SQLiteDatastore) Purchases() repo.Purchases
- func (d *SQLiteDatastore) Sales() repo.Sales
- func (d *SQLiteDatastore) Settings() repo.Settings
- func (d *SQLiteDatastore) State() spvwallet.State
- func (d *SQLiteDatastore) Stxos() spvwallet.Stxos
- func (d *SQLiteDatastore) Txns() spvwallet.Txns
- func (d *SQLiteDatastore) Utxos() spvwallet.Utxos
- func (d *SQLiteDatastore) WatchedScripts() spvwallet.WatchedScripts
- type SalesDB
- func (s *SalesDB) Delete(orderID string) error
- func (s *SalesDB) GetAll() ([]string, error)
- func (s *SalesDB) GetByOrderId(orderId string) (*pb.RicardianContract, pb.OrderState, bool, []*spvwallet.TransactionRecord, ...)
- func (s *SalesDB) GetByPaymentAddress(addr btc.Address) (*pb.RicardianContract, pb.OrderState, bool, []*spvwallet.TransactionRecord, ...)
- func (s *SalesDB) MarkAsRead(orderID string) error
- func (s *SalesDB) Put(orderID string, contract pb.RicardianContract, state pb.OrderState, read bool) error
- func (s *SalesDB) UpdateFunding(orderId string, funded bool, records []*spvwallet.TransactionRecord) error
- type SettingsDB
- type StateDB
- type StxoDB
- type TxnsDB
- type UtxoDB
- type WatchedScriptsDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigDB ¶
type ConfigDB struct {
// contains filtered or unexported fields
}
func (*ConfigDB) GetIdentityKey ¶
func (*ConfigDB) GetMnemonic ¶
func (*ConfigDB) IsEncrypted ¶
type FollowerDB ¶
type FollowerDB struct {
// contains filtered or unexported fields
}
func (*FollowerDB) Count ¶
func (f *FollowerDB) Count() int
func (*FollowerDB) Delete ¶
func (f *FollowerDB) Delete(follower string) error
func (*FollowerDB) FollowsMe ¶ added in v0.2.0
func (f *FollowerDB) FollowsMe(peerId string) bool
func (*FollowerDB) Put ¶
func (f *FollowerDB) Put(follower string) error
type FollowingDB ¶
type FollowingDB struct {
// contains filtered or unexported fields
}
func (*FollowingDB) Count ¶
func (f *FollowingDB) Count() int
func (*FollowingDB) Delete ¶
func (f *FollowingDB) Delete(follower string) error
func (*FollowingDB) IsFollowing ¶ added in v0.2.0
func (f *FollowingDB) IsFollowing(peerId string) bool
func (*FollowingDB) Put ¶
func (f *FollowingDB) Put(follower string) error
type InventoryDB ¶
type InventoryDB struct {
// contains filtered or unexported fields
}
func (*InventoryDB) Delete ¶
func (i *InventoryDB) Delete(path string) error
func (*InventoryDB) DeleteAll ¶ added in v0.1.1
func (i *InventoryDB) DeleteAll(slug string) error
func (*InventoryDB) GetSpecific ¶ added in v0.1.1
func (i *InventoryDB) GetSpecific(path string) (int, error)
type KeysDB ¶
type KeysDB struct {
// contains filtered or unexported fields
}
func (*KeysDB) GetLastKeyIndex ¶
func (*KeysDB) GetLookaheadWindows ¶
func (k *KeysDB) GetLookaheadWindows() map[spvwallet.KeyPurpose]int
func (*KeysDB) GetPathForScript ¶
func (*KeysDB) MarkKeyAsUsed ¶
type OfflineMessagesDB ¶
type OfflineMessagesDB struct {
// contains filtered or unexported fields
}
func (*OfflineMessagesDB) Has ¶
func (o *OfflineMessagesDB) Has(url string) bool
func (*OfflineMessagesDB) Put ¶
func (o *OfflineMessagesDB) Put(url string) error
type PointersDB ¶
type PointersDB struct {
// contains filtered or unexported fields
}
type PurchasesDB ¶ added in v0.1.2
type PurchasesDB struct {
// contains filtered or unexported fields
}
func (*PurchasesDB) Delete ¶ added in v0.1.2
func (p *PurchasesDB) Delete(orderID string) error
func (*PurchasesDB) GetAll ¶ added in v0.1.2
func (p *PurchasesDB) GetAll() ([]string, error)
func (*PurchasesDB) GetByOrderId ¶ added in v0.2.0
func (p *PurchasesDB) GetByOrderId(orderId string) (*pb.RicardianContract, pb.OrderState, bool, []*spvwallet.TransactionRecord, bool, error)
func (*PurchasesDB) GetByPaymentAddress ¶ added in v0.2.0
func (p *PurchasesDB) GetByPaymentAddress(addr btc.Address) (*pb.RicardianContract, pb.OrderState, bool, []*spvwallet.TransactionRecord, error)
func (*PurchasesDB) MarkAsRead ¶ added in v0.1.2
func (p *PurchasesDB) MarkAsRead(orderID string) error
func (*PurchasesDB) Put ¶ added in v0.1.2
func (p *PurchasesDB) Put(orderID string, contract pb.RicardianContract, state pb.OrderState, read bool) error
func (*PurchasesDB) UpdateFunding ¶ added in v0.2.0
func (p *PurchasesDB) UpdateFunding(orderId string, funded bool, records []*spvwallet.TransactionRecord) error
type SQLiteDatastore ¶
type SQLiteDatastore struct {
// contains filtered or unexported fields
}
func (*SQLiteDatastore) Close ¶
func (d *SQLiteDatastore) Close()
func (*SQLiteDatastore) Config ¶
func (d *SQLiteDatastore) Config() repo.Config
func (*SQLiteDatastore) Followers ¶
func (d *SQLiteDatastore) Followers() repo.Followers
func (*SQLiteDatastore) Following ¶
func (d *SQLiteDatastore) Following() repo.Following
func (*SQLiteDatastore) Inventory ¶
func (d *SQLiteDatastore) Inventory() repo.Inventory
func (*SQLiteDatastore) Keys ¶
func (d *SQLiteDatastore) Keys() spvwallet.Keys
func (*SQLiteDatastore) OfflineMessages ¶
func (d *SQLiteDatastore) OfflineMessages() repo.OfflineMessages
func (*SQLiteDatastore) Pointers ¶
func (d *SQLiteDatastore) Pointers() repo.Pointers
func (*SQLiteDatastore) Purchases ¶ added in v0.1.2
func (d *SQLiteDatastore) Purchases() repo.Purchases
func (*SQLiteDatastore) Sales ¶ added in v0.1.2
func (d *SQLiteDatastore) Sales() repo.Sales
func (*SQLiteDatastore) Settings ¶
func (d *SQLiteDatastore) Settings() repo.Settings
func (*SQLiteDatastore) State ¶
func (d *SQLiteDatastore) State() spvwallet.State
func (*SQLiteDatastore) Stxos ¶
func (d *SQLiteDatastore) Stxos() spvwallet.Stxos
func (*SQLiteDatastore) Txns ¶
func (d *SQLiteDatastore) Txns() spvwallet.Txns
func (*SQLiteDatastore) Utxos ¶
func (d *SQLiteDatastore) Utxos() spvwallet.Utxos
func (*SQLiteDatastore) WatchedScripts ¶ added in v0.2.0
func (d *SQLiteDatastore) WatchedScripts() spvwallet.WatchedScripts
type SalesDB ¶ added in v0.1.2
type SalesDB struct {
// contains filtered or unexported fields
}
func (*SalesDB) GetByOrderId ¶ added in v0.2.0
func (s *SalesDB) GetByOrderId(orderId string) (*pb.RicardianContract, pb.OrderState, bool, []*spvwallet.TransactionRecord, bool, error)
func (*SalesDB) GetByPaymentAddress ¶ added in v0.2.0
func (s *SalesDB) GetByPaymentAddress(addr btc.Address) (*pb.RicardianContract, pb.OrderState, bool, []*spvwallet.TransactionRecord, error)
func (*SalesDB) MarkAsRead ¶ added in v0.1.2
func (*SalesDB) Put ¶ added in v0.1.2
func (s *SalesDB) Put(orderID string, contract pb.RicardianContract, state pb.OrderState, read bool) error
func (*SalesDB) UpdateFunding ¶ added in v0.2.0
type SettingsDB ¶
type SettingsDB struct {
// contains filtered or unexported fields
}
func (*SettingsDB) Delete ¶ added in v0.2.4
func (s *SettingsDB) Delete() error
Delete removes all settings from the database. It's a destructive action that should be used with care.
func (*SettingsDB) Get ¶
func (s *SettingsDB) Get() (repo.SettingsData, error)
func (*SettingsDB) Put ¶
func (s *SettingsDB) Put(settings repo.SettingsData) error
func (*SettingsDB) Update ¶
func (s *SettingsDB) Update(settings repo.SettingsData) error
type WatchedScriptsDB ¶ added in v0.2.0
type WatchedScriptsDB struct {
// contains filtered or unexported fields
}
func (*WatchedScriptsDB) Delete ¶ added in v0.2.0
func (w *WatchedScriptsDB) Delete(scriptPubKey []byte) error
func (*WatchedScriptsDB) GetAll ¶ added in v0.2.0
func (w *WatchedScriptsDB) GetAll() ([][]byte, error)
func (*WatchedScriptsDB) Put ¶ added in v0.2.0
func (w *WatchedScriptsDB) Put(scriptPubKey []byte) error
Click to show internal directories.
Click to hide internal directories.