Documentation
¶
Index ¶
- func Decrypt() error
- func Encrypt() error
- type CasesDB
- func (c *CasesDB) Delete(orderID string) error
- func (c *CasesDB) GetAll() ([]string, error)
- func (c *CasesDB) GetCaseMetadata(caseID string) (buyerContract, vendorContract *pb.RicardianContract, ...)
- func (c *CasesDB) GetPayoutDetails(caseID string) (buyerContract, vendorContract *pb.RicardianContract, ...)
- func (c *CasesDB) MarkAsClosed(caseID string, resolution *pb.DisputeResolution) error
- func (c *CasesDB) MarkAsRead(orderID string) error
- func (c *CasesDB) Put(caseID string, state pb.OrderState, buyerOpened bool, claim string) error
- func (c *CasesDB) UpdateBuyerInfo(caseID string, buyerContract *pb.RicardianContract, ...) error
- func (c *CasesDB) UpdateVendorInfo(caseID string, vendorContract *pb.RicardianContract, ...) error
- type ChatDB
- func (c *ChatDB) DeleteConversation(peerId string) error
- func (c *ChatDB) DeleteMessage(msgID int) error
- func (c *ChatDB) GetConversations() []repo.ChatConversation
- func (c *ChatDB) GetMessages(peerID string, subject string, offsetId int, limit int) []repo.ChatMessage
- func (c *ChatDB) MarkAsRead(peerID string) error
- func (c *ChatDB) Put(peerId string, subject string, message string, timestamp time.Time, read bool, ...) 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 NotficationsDB
- 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) Cases() repo.Cases
- func (d *SQLiteDatastore) Chat() repo.Chat
- 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) Notifications() repo.Notifications
- 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) 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 StxoDB
- type TxnsDB
- type UtxoDB
- type WatchedScriptsDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CasesDB ¶ added in v0.3.0
type CasesDB struct {
// contains filtered or unexported fields
}
func (*CasesDB) GetCaseMetadata ¶ added in v0.3.0
func (c *CasesDB) GetCaseMetadata(caseID string) (buyerContract, vendorContract *pb.RicardianContract, buyerValidationErrors, vendorValidationErrors []string, state pb.OrderState, read bool, timestamp time.Time, buyerOpened bool, claim string, resolution *pb.DisputeResolution, err error)
func (*CasesDB) GetPayoutDetails ¶ added in v0.3.0
func (c *CasesDB) GetPayoutDetails(caseID string) (buyerContract, vendorContract *pb.RicardianContract, buyerPayoutAddress, vendorPayoutAddress string, buyerOutpoints, vendorOutpoints []*pb.Outpoint, state pb.OrderState, err error)
func (*CasesDB) MarkAsClosed ¶ added in v0.3.0
func (c *CasesDB) MarkAsClosed(caseID string, resolution *pb.DisputeResolution) error
func (*CasesDB) MarkAsRead ¶ added in v0.3.0
func (c *CasesDB) MarkAsRead(orderID string) error
func (*CasesDB) Put ¶ added in v0.3.0
func (c *CasesDB) Put(caseID string, state pb.OrderState, buyerOpened bool, claim string) error
func (*CasesDB) UpdateBuyerInfo ¶ added in v0.3.0
func (c *CasesDB) UpdateBuyerInfo(caseID string, buyerContract *pb.RicardianContract, buyerValidationErrors []string, buyerPayoutAddress string, buyerOutpoints []*pb.Outpoint) error
func (*CasesDB) UpdateVendorInfo ¶ added in v0.3.0
func (c *CasesDB) UpdateVendorInfo(caseID string, vendorContract *pb.RicardianContract, vendorValidationErrors []string, vendorPayoutAddress string, vendorOutpoints []*pb.Outpoint) error
type ChatDB ¶ added in v0.3.1
type ChatDB struct {
// contains filtered or unexported fields
}
func (*ChatDB) DeleteConversation ¶ added in v0.3.1
func (c *ChatDB) DeleteConversation(peerId string) error
func (*ChatDB) DeleteMessage ¶ added in v0.3.1
func (c *ChatDB) DeleteMessage(msgID int) error
func (*ChatDB) GetConversations ¶ added in v0.3.1
func (c *ChatDB) GetConversations() []repo.ChatConversation
func (*ChatDB) GetMessages ¶ added in v0.3.1
func (c *ChatDB) GetMessages(peerID string, subject string, offsetId int, limit int) []repo.ChatMessage
func (*ChatDB) MarkAsRead ¶ added in v0.3.1
func (c *ChatDB) MarkAsRead(peerID string) error
type ConfigDB ¶
type ConfigDB struct {
// contains filtered or unexported fields
}
func (*ConfigDB) GetIdentityKey ¶
func (c *ConfigDB) GetIdentityKey() ([]byte, error)
func (*ConfigDB) GetMnemonic ¶
func (c *ConfigDB) GetMnemonic() (string, error)
func (*ConfigDB) Init ¶
func (c *ConfigDB) Init(mnemonic string, identityKey []byte, password string) error
func (*ConfigDB) IsEncrypted ¶
func (c *ConfigDB) IsEncrypted() bool
type FollowerDB ¶
type FollowerDB struct {
// contains filtered or unexported fields
}
type FollowingDB ¶
type FollowingDB struct {
// contains filtered or unexported fields
}
func (*FollowingDB) IsFollowing ¶ added in v0.2.0
func (f *FollowingDB) IsFollowing(peerId string) bool
type InventoryDB ¶
type InventoryDB struct {
// contains filtered or unexported fields
}
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 (k *KeysDB) GetLastKeyIndex(purpose spvwallet.KeyPurpose) (int, bool, error)
func (*KeysDB) GetLookaheadWindows ¶
func (k *KeysDB) GetLookaheadWindows() map[spvwallet.KeyPurpose]int
func (*KeysDB) GetPathForScript ¶
func (k *KeysDB) GetPathForScript(scriptPubKey []byte) (spvwallet.KeyPath, error)
func (*KeysDB) MarkKeyAsUsed ¶
func (k *KeysDB) MarkKeyAsUsed(scriptPubKey []byte) error
type NotficationsDB ¶ added in v0.3.1
type NotficationsDB struct {
// contains filtered or unexported fields
}
func (*NotficationsDB) GetAll ¶ added in v0.3.1
func (n *NotficationsDB) GetAll(offsetId int, limit int) []notif.Notification
func (*NotficationsDB) MarkAsRead ¶ added in v0.3.1
func (n *NotficationsDB) MarkAsRead(notifID int) error
type OfflineMessagesDB ¶
type OfflineMessagesDB struct {
// contains filtered or unexported fields
}
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) 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) Notifications ¶ added in v0.3.1
func (d *SQLiteDatastore) Notifications() repo.Notifications
func (*SQLiteDatastore) OfflineMessages ¶
func (d *SQLiteDatastore) OfflineMessages() repo.OfflineMessages
func (*SQLiteDatastore) Purchases ¶ added in v0.1.2
func (d *SQLiteDatastore) Purchases() repo.Purchases
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 (s *SalesDB) MarkAsRead(orderID string) error
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
func (s *SalesDB) UpdateFunding(orderId string, funded bool, records []*spvwallet.TransactionRecord) error
type SettingsDB ¶
type SettingsDB struct {
// contains filtered or unexported fields
}
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
Click to show internal directories.
Click to hide internal directories.