Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) LoadAllTransactions ¶
LoadAllTransactions loads data with keys on the format "tx:HHHH", where HHHH is a hexadecimal counter, until no data is found for a value of the counter. This is considered to be all stored transactions. It does not check for duplicates. If duplicates are found, the later one should be used. TODO Find a better way to store transactions.
func (*DB) StoreNewTransaction ¶
Only call after LoadAllTransactions has completed. Due to how difficult it is to update transactions after the fact, duplicates storage of the same transaction is fine as long as they are incrementally more complete/correct.
Click to show internal directories.
Click to hide internal directories.