Documentation ¶
Index ¶
- type BadgerStore
- func (b *BadgerStore) AddDepositAddress(id string, index uint64, depositAddress *StoredDepositAddress) error
- func (b *BadgerStore) AddPendingTransfer(id string, tailTx Hash, bundleTrytes []Trytes, indices ...uint64) error
- func (b *BadgerStore) AddTailHash(id string, tailTx Hash, newTailTxHash Hash) error
- func (b *BadgerStore) Close() error
- func (b *BadgerStore) ExportAccount(id string) (*ExportedAccountState, error)
- func (b *BadgerStore) GetDepositAddresses(id string) (map[uint64]*StoredDepositAddress, error)
- func (b *BadgerStore) GetPendingTransfers(id string) (map[string]*PendingTransfer, error)
- func (b *BadgerStore) ImportAccount(state ExportedAccountState) error
- func (b *BadgerStore) LoadAccount(id string) (*AccountState, error)
- func (b *BadgerStore) ReadIndex(id string) (uint64, error)
- func (b *BadgerStore) RemoveAccount(id string) error
- func (b *BadgerStore) RemoveDepositAddress(id string, index uint64) error
- func (b *BadgerStore) RemovePendingTransfer(id string, tailTx Hash) error
- func (b *BadgerStore) WriteIndex(id string, index uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadgerStore ¶
type BadgerStore struct {
// contains filtered or unexported fields
}
func NewBadgerStore ¶
func NewBadgerStore(dir string) (*BadgerStore, error)
func (*BadgerStore) AddDepositAddress ¶
func (b *BadgerStore) AddDepositAddress(id string, index uint64, depositAddress *StoredDepositAddress) error
func (*BadgerStore) AddPendingTransfer ¶
func (b *BadgerStore) AddPendingTransfer(id string, tailTx Hash, bundleTrytes []Trytes, indices ...uint64) error
func (*BadgerStore) AddTailHash ¶
func (b *BadgerStore) AddTailHash(id string, tailTx Hash, newTailTxHash Hash) error
func (*BadgerStore) ExportAccount ¶
func (b *BadgerStore) ExportAccount(id string) (*ExportedAccountState, error)
func (*BadgerStore) GetDepositAddresses ¶
func (b *BadgerStore) GetDepositAddresses(id string) (map[uint64]*StoredDepositAddress, error)
func (*BadgerStore) GetPendingTransfers ¶
func (b *BadgerStore) GetPendingTransfers(id string) (map[string]*PendingTransfer, error)
func (*BadgerStore) ImportAccount ¶
func (b *BadgerStore) ImportAccount(state ExportedAccountState) error
func (*BadgerStore) LoadAccount ¶
func (b *BadgerStore) LoadAccount(id string) (*AccountState, error)
func (*BadgerStore) RemoveAccount ¶
func (b *BadgerStore) RemoveAccount(id string) error
func (*BadgerStore) RemoveDepositAddress ¶
func (b *BadgerStore) RemoveDepositAddress(id string, index uint64) error
func (*BadgerStore) RemovePendingTransfer ¶
func (b *BadgerStore) RemovePendingTransfer(id string, tailTx Hash) error
func (*BadgerStore) WriteIndex ¶
func (b *BadgerStore) WriteIndex(id string, index uint64) error
Click to show internal directories.
Click to hide internal directories.