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