Version: v0.0.9 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 6 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


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 (mem *InMemoryStore) AddPendingTransfer(id string, tailTx trinary.Hash, bundleTrytes []trinary.Trytes, indices ...uint64) error

func (*InMemoryStore) AddTailHash

func (mem *InMemoryStore) AddTailHash(id string, tailTx trinary.Hash, newTailTxHash trinary.Hash) error

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) ReadIndex

func (mem *InMemoryStore) ReadIndex(id string) (uint64, 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL